Skip to content

Conversation

shreyamalviya
Copy link
Contributor

What does this PR do?

Fixes #1513

PR Checklist

  • Have you added an explanation of what your changes do and why you'd like to include them?
  • Is the TravisCI build passing?
  • Was the CHANGELOG.md updated to reflect the changes?
  • Was the documentation framework updated to reflect the changes?

Testing Checklist

  • Added relevant unit tests?
  • Have you successfully tested your changes locally? Elaborate:

    Tested by running the Island after running PBAs that use ps1 scripts

  • If applicable, add screenshots or log transcripts of the feature working

image

Comment on lines 43 to 45
"$or": [
{"data.command": {"$regex": r"\.ps1"}},
{"data.result": {"$regex": r"\.ps1"}},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Account discovery uses PowerShell but will not get found by this query

return ([{
Header: 'Example Powershell commands used',
Header: 'PowerShell commands used on exploited machines',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PBA's are also powershell commands used on exploited machines

@@ -32,18 +32,72 @@ class T1086 extends React.Component {
}])
}

static getPowershellColumnsForPBAs() {
return ([{
Header: 'PBAs that used PowerShell commands or scripts',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the header could be simply "Post Breach Actions", because that's what user sees in the configuration

Copy link
Contributor

@VakarisZ VakarisZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor fixes to report and query improvement needed

@shreyamalviya shreyamalviya force-pushed the update-t1086-reporting branch from 98ce106 to 82eea6a Compare October 13, 2021 08:11
@@ -12,7 +12,7 @@ class T1086 extends React.Component {

static getPowershellColumnsForExploits() {
return ([{
Header: 'PowerShell commands used on exploited machines',
Header: 'PowerShell commands used during exploitation',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd further simplify this to "Exploiters" because there's already a section explaining that Monkey used PowerShell commands.

@@ -34,7 +34,7 @@ class T1086 extends React.Component {

static getPowershellColumnsForPBAs() {
return ([{
Header: 'PBAs that used PowerShell commands or scripts',
Header: 'Post-breach actions that used PowerShell commands/scripts',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd further simplify this to "Post Breach Actions" because there's already a section explaining that Monkey used PowerShell commands.

Copy link
Contributor

@VakarisZ VakarisZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could improve the titles, but that's optional

@shreyamalviya shreyamalviya merged commit a9e0325 into develop Oct 14, 2021
@shreyamalviya shreyamalviya deleted the update-t1086-reporting branch October 14, 2021 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update PowerShell ATT&CK technique (T1086) if a ps1 script is run as part of any PBA
3 participants