-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(mitre azure): add mapping to mitre for azure provider (#3857)
Co-authored-by: Sergio Garcia <[email protected]>
- Loading branch information
Showing
11 changed files
with
2,690 additions
and
100 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import warnings | ||
|
||
from dashboard.common_methods import get_section_containers_format2 | ||
|
||
warnings.filterwarnings("ignore") | ||
|
||
|
||
def get_table(data): | ||
aux = data[ | ||
[ | ||
"REQUIREMENTS_ID", | ||
"REQUIREMENTS_SUBTECHNIQUES", | ||
"CHECKID", | ||
"STATUS", | ||
"REGION", | ||
"ACCOUNTID", | ||
"RESOURCEID", | ||
] | ||
].copy() | ||
|
||
return get_section_containers_format2( | ||
aux, "REQUIREMENTS_ID", "REQUIREMENTS_SUBTECHNIQUES" | ||
) |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Empty file.
135 changes: 78 additions & 57 deletions
135
...ib/outputs/compliance/mitre_attack_aws.py → ...s/compliance/mitre_attack/mitre_attack.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
from pydantic import BaseModel | ||
|
||
|
||
class MitreAttackAWS(BaseModel): | ||
""" | ||
MitreAttackAWS generates a finding's output in CSV MITRE ATTACK format for AWS. | ||
""" | ||
|
||
Provider: str | ||
Description: str | ||
AccountId: str | ||
Region: str | ||
AssessmentDate: str | ||
Requirements_Id: str | ||
Requirements_Name: str | ||
Requirements_Description: str | ||
Requirements_Tactics: str | ||
Requirements_SubTechniques: str | ||
Requirements_Platforms: str | ||
Requirements_TechniqueURL: str | ||
Requirements_Attributes_Services: str | ||
Requirements_Attributes_Categories: str | ||
Requirements_Attributes_Values: str | ||
Requirements_Attributes_Comments: str | ||
Status: str | ||
StatusExtended: str | ||
ResourceId: str | ||
CheckId: str | ||
Muted: bool | ||
|
||
|
||
class MitreAttackAzure(BaseModel): | ||
""" | ||
MitreAttackAzure generates a finding's output in CSV MITRE ATTACK format for Azure. | ||
""" | ||
|
||
Provider: str | ||
Description: str | ||
SubscriptionId: str | ||
AssessmentDate: str | ||
Requirements_Id: str | ||
Requirements_Name: str | ||
Requirements_Description: str | ||
Requirements_Tactics: str | ||
Requirements_SubTechniques: str | ||
Requirements_Platforms: str | ||
Requirements_TechniqueURL: str | ||
Requirements_Attributes_Services: str | ||
Requirements_Attributes_Categories: str | ||
Requirements_Attributes_Values: str | ||
Requirements_Attributes_Comments: str | ||
Status: str | ||
StatusExtended: str | ||
ResourceId: str | ||
CheckId: str | ||
Muted: bool |
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
Oops, something went wrong.