Skip to content

Commit

Permalink
Merge branch 'main' into sbomMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
charleshu-8 authored Aug 7, 2024
2 parents 334868a + 3715ff3 commit b9b1a6e
Show file tree
Hide file tree
Showing 12 changed files with 46,161 additions and 21 deletions.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ The SAF CLI is the successor to [Heimdall Tools](https://github.com/mitre/heimda
* [Ion Channel 2 HDF](#ion-channel-2-hdf)
* [JFrog Xray to HDF](#jfrog-xray-to-hdf)
* [Tenable Nessus to HDF](#tenable-nessus-to-hdf)
* [Microsoft Secure Score to HDF](#msft_secure-to-hdf)
* [Netsparker to HDF](#netsparker-to-hdf)
* [Nikto to HDF](#nikto-to-hdf)
* [Prisma to HDF](#prisma-to-hdf)
Expand Down Expand Up @@ -477,6 +478,7 @@ AWS SecurityHub enabled standards json|Get all the enabled standards so you can
AWS SecurityHub standard controls json|Get all the controls for a standard that will be fed into the mapper|aws securityhub describe-standards-controls --standards-subscription-arn "arn:aws:securityhub:us-east-1:123456789123:subscription/cis-aws-foundations-benchmark/v/1.2.0" > asff_cis_standard.json



```
convert asff2hdf Translate a AWS Security Finding Format JSON into a
Heimdall Data Format JSON file(s)
Expand Down Expand Up @@ -695,6 +697,42 @@ convert nessus2hdf Translate a Nessus XML results file into a Heimdal
$ saf convert nessus2hdf -i nessus_results.xml -o output-hdf-name.json
```

[top](#convert-other-formats-to-hdf)
#### Microsoft Secure Score to HDF
Output|Use|Command
---|---|---
Microsoft Secure Score JSON|This file contains the Graph API response for the `security/secureScore` endpoint|PowerShell$ `Get-MgSecuritySecureScore -Top 500`
Microsoft Secure Score Control Profiles JSON|This file contains the Graph API response for the `security/secureScoreControlProfiles` endpoint|PowerShell$ `Get-MgSecuritySecureScoreControlProfile -Top 500`
Combined JSON|Combine the outputs from `security/secureScore` and `security/secureScoreControlProfiles` endpoints|`jq -s \'{"secureScore": .[0], "profiles": .[1]}\' secureScore.json secureScoreControlProfiles.json`


```
convert msft_secure2hdf Translate a Microsoft Secure Score report and Secure Score Control to a Heimdall Data Format JSON file
USAGE
$ saf convert msft_secure2hdf -r <secureScore-json> -p <secure-score-control-profiles> -o <hdf-scan-results-json> [-h]
$ saf convert msft_secure2hdf -t <azure-tenant-id> -a <azure-app-id> -s <azure-app-secret> -o <hdf-scan-results-json> [-h]
$ saf convert msft_secure2hdf -i <combined-inputs> -o <hdf-scan-results-json> [-h]
FLAGS
-h, --help Show CLI help.
-i, --combinedInputs JSON File combining the outputs from the Microsoft Graph API endpoints
-r, --inputScoreDoc=<secure-score-json> Input Secure Scores JSON File
-p, --inputProfiles=<secure-score-control-profiles-json> Input Secure Score Control Profiles JSON File
-t, --tenantId=<azure-tenant-id> Azure Tenant ID
-a, --appId=<azure-app-id> Azure App ID
-s, --appSecreet=<azure-app-id> Azure App Secret
-o, --output=<hdf-scan-results-json> Output HDF JSON File
EXAMPLES
$ saf convert msft_secure2hdf -r secureScore.json -p secureScoreControlProfile.json -o output-hdf-name.json
$ saf convert msft_secure2hdf -t "12345678-1234-1234-1234-1234567890abcd" \
-a "12345678-1234-1234-1234-1234567890abcd" \
-s "aaaaa~bbbbbbbbbbbbbbbbbbbbbbbbb-cccccccc" \
-o output-hdf-name.json
$ saf convert msft_secure2hdf -i <(jq -s \'{"secureScore": .[0], "profiles": .[1]}\' secureScore.json secureScoreControlProfiles.json) -o output-hdf-name.json
```

[top](#convert-other-formats-to-hdf)
#### Netsparker to HDF
```
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.9
1.4.10
Loading

0 comments on commit b9b1a6e

Please sign in to comment.