-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #558 from BloodHoundAD/az_help_modals
Az help modals
- Loading branch information
Showing
48 changed files
with
794 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/components/Modals/HelpTexts/AZAddSecret/AZAddSecret.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Tabs, Tab } from 'react-bootstrap'; | ||
import General from './General'; | ||
import Abuse from './Abuse'; | ||
import Opsec from './Opsec'; | ||
import References from './References'; | ||
|
||
const AZAddSecret = ({ | ||
sourceName, | ||
sourceType, | ||
targetName, | ||
targetType, | ||
}) => { | ||
return ( | ||
<Tabs defaultActiveKey={1} id='help-tab-container' justified> | ||
<Tab | ||
eventKey={1} | ||
title='Info' | ||
dangerouslySetInnerHTML={General( | ||
sourceName, | ||
sourceType, | ||
targetName, | ||
targetType | ||
)} | ||
/> | ||
<Tab | ||
eventKey={2} | ||
title='Abuse Info' | ||
dangerouslySetInnerHTML={Abuse( | ||
sourceName, | ||
sourceType, | ||
targetName, | ||
targetType | ||
)} | ||
/> | ||
<Tab | ||
eventKey={3} | ||
title='Opsec Considerations' | ||
dangerouslySetInnerHTML={Opsec()} | ||
/> | ||
<Tab | ||
eventKey={4} | ||
title='References' | ||
dangerouslySetInnerHTML={References()} | ||
/> | ||
</Tabs> | ||
); | ||
}; | ||
|
||
AZAddSecret.propTypes = { | ||
sourceName: PropTypes.string, | ||
sourceType: PropTypes.string, | ||
targetName: PropTypes.string, | ||
targetType: PropTypes.string, | ||
}; | ||
export default AZAddSecret; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const Abuse = (sourceName, sourceType, targetName, targetType) => { | ||
let text = ``; | ||
return { __html: text }; | ||
}; | ||
|
||
export default Abuse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { groupSpecialFormat} from '../Formatter'; | ||
|
||
const General = (sourceName, sourceType, targetName, targetType) => { | ||
let text = `Azure provides several systems and mechanisms for granting control of securable objects within Azure Active Directory, including tenant-scoped admin roles, object-scoped admin roles, explicit object ownership, and API permissions. | ||
When a principal has been granted "Cloud App Admin" or "App Admin" against the tenant, that principal gains the ability to add new secrets to all Service Principals and App Registrations. Additionally, a principal that has been granted "Cloud App Admin" or "App Admin" against, or explicit ownership of a Service Principal or App Registration gains the ability to add secrets to that particular object. | ||
`; | ||
return { __html: text }; | ||
}; | ||
|
||
export default General; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const Opsec = () => { | ||
let text = ``; | ||
return { __html: text }; | ||
}; | ||
|
||
export default Opsec; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const References = () => { | ||
let text = `<a href="https://attack.mitre.org/techniques/T1098/">ATT&CK T1098: Account Manipulation</a> | ||
<a href="https://posts.specterops.io/azure-privilege-escalation-via-service-principal-abuse-210ae2be2a5">Andy Robbins - Azure Privilege Escalation via Service Principal Abuse</a> | ||
<a href="https://docs.microsoft.com/en-us/azure/active-directory/roles/assign-roles-different-scopes">Assign Azure AD roles at different scopes</a>`; | ||
return { __html: text }; | ||
}; | ||
|
||
export default References; |
57 changes: 57 additions & 0 deletions
57
src/components/Modals/HelpTexts/AZAvereContributor/AZAvereContributor.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Tabs, Tab } from 'react-bootstrap'; | ||
import General from './General'; | ||
import Abuse from './Abuse'; | ||
import Opsec from './Opsec'; | ||
import References from './References'; | ||
|
||
const AZAvereContributor = ({ | ||
sourceName, | ||
sourceType, | ||
targetName, | ||
targetType, | ||
}) => { | ||
return ( | ||
<Tabs defaultActiveKey={1} id='help-tab-container' justified> | ||
<Tab | ||
eventKey={1} | ||
title='Info' | ||
dangerouslySetInnerHTML={General( | ||
sourceName, | ||
sourceType, | ||
targetName, | ||
targetType | ||
)} | ||
/> | ||
<Tab | ||
eventKey={2} | ||
title='Abuse Info' | ||
dangerouslySetInnerHTML={Abuse( | ||
sourceName, | ||
sourceType, | ||
targetName, | ||
targetType | ||
)} | ||
/> | ||
<Tab | ||
eventKey={3} | ||
title='Opsec Considerations' | ||
dangerouslySetInnerHTML={Opsec()} | ||
/> | ||
<Tab | ||
eventKey={4} | ||
title='References' | ||
dangerouslySetInnerHTML={References()} | ||
/> | ||
</Tabs> | ||
); | ||
}; | ||
|
||
AZAvereContributor.propTypes = { | ||
sourceName: PropTypes.string, | ||
sourceType: PropTypes.string, | ||
targetName: PropTypes.string, | ||
targetType: PropTypes.string, | ||
}; | ||
export default AZAvereContributor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const Abuse = (sourceName, sourceType, targetName, targetType) => { | ||
let text = ``; | ||
return { __html: text }; | ||
}; | ||
|
||
export default Abuse; |
6 changes: 6 additions & 0 deletions
6
src/components/Modals/HelpTexts/AZAvereContributor/General.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const General = (sourceName, sourceType, targetName, targetType) => { | ||
let text = `Any principal granted the Avere Contributor role, scoped to the affected VM, can reset the built-in administrator password on the VM.`; | ||
return { __html: text }; | ||
}; | ||
|
||
export default General; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const Opsec = () => { | ||
let text = `Azure will log each password reset event, including who performed the reset, against which account, and at what date and time.`; | ||
return { __html: text }; | ||
}; | ||
|
||
export default Opsec; |
8 changes: 8 additions & 0 deletions
8
src/components/Modals/HelpTexts/AZAvereContributor/References.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const References = () => { | ||
let text = `<a href="https://attack.mitre.org/tactics/TA0008/">ATT&CK T0008: Lateral Movement</a> | ||
<a href="https://attack.mitre.org/techniques/T1021/">ATT&CK T1021: Remote Services</a> | ||
<a href="https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#avere-contributor">Microsoft Docs - Avere Contributor</a>`; | ||
return { __html: text }; | ||
}; | ||
|
||
export default References; |
57 changes: 57 additions & 0 deletions
57
src/components/Modals/HelpTexts/AZExecuteCommand/AZExecuteCommand.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Tabs, Tab } from 'react-bootstrap'; | ||
import General from './General'; | ||
import Abuse from './Abuse'; | ||
import Opsec from './Opsec'; | ||
import References from './References'; | ||
|
||
const AZExecuteCommand = ({ | ||
sourceName, | ||
sourceType, | ||
targetName, | ||
targetType, | ||
}) => { | ||
return ( | ||
<Tabs defaultActiveKey={1} id='help-tab-container' justified> | ||
<Tab | ||
eventKey={1} | ||
title='Info' | ||
dangerouslySetInnerHTML={General( | ||
sourceName, | ||
sourceType, | ||
targetName, | ||
targetType | ||
)} | ||
/> | ||
<Tab | ||
eventKey={2} | ||
title='Abuse Info' | ||
dangerouslySetInnerHTML={Abuse( | ||
sourceName, | ||
sourceType, | ||
targetName, | ||
targetType | ||
)} | ||
/> | ||
<Tab | ||
eventKey={3} | ||
title='Opsec Considerations' | ||
dangerouslySetInnerHTML={Opsec()} | ||
/> | ||
<Tab | ||
eventKey={4} | ||
title='References' | ||
dangerouslySetInnerHTML={References()} | ||
/> | ||
</Tabs> | ||
); | ||
}; | ||
|
||
AZExecuteCommand.propTypes = { | ||
sourceName: PropTypes.string, | ||
sourceType: PropTypes.string, | ||
targetName: PropTypes.string, | ||
targetType: PropTypes.string, | ||
}; | ||
export default AZExecuteCommand; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const Abuse = (sourceName, sourceType, targetName, targetType) => { | ||
let text = ``; | ||
return { __html: text }; | ||
}; | ||
|
||
export default Abuse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { groupSpecialFormat} from '../Formatter'; | ||
|
||
const General = (sourceName, sourceType, targetName, targetType) => { | ||
let text = ``; | ||
return { __html: text }; | ||
}; | ||
|
||
export default General; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const Opsec = () => { | ||
let text = ``; | ||
return { __html: text }; | ||
}; | ||
|
||
export default Opsec; |
8 changes: 8 additions & 0 deletions
8
src/components/Modals/HelpTexts/AZExecuteCommand/References.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const References = () => { | ||
let text = ` | ||
<a href="https://attack.mitre.org/tactics/TA0002/">MITRE: Execution</a> | ||
<a href="https://blog.netspi.com/attacking-azure-with-custom-script-extensions/">Attacking Azure with custom script extensions</a>`; | ||
return { __html: text }; | ||
}; | ||
|
||
export default References; |
Oops, something went wrong.