forked from opensearch-project/security-analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add mappings and test case (opensearch-project#89)
* dns and cloudtrail mappings Signed-off-by: Grant Haywood <grant@phaseshift.studio> * add s3 mappings Signed-off-by: Grant Haywood <grant@phaseshift.studio> Signed-off-by: Grant Haywood <grant@phaseshift.studio>
- Loading branch information
1 parent
bb7ffb5
commit ee7f6fb
Showing
10 changed files
with
443 additions
and
31 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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
# this file provides pre-defined mappings for Sigma fields defined for all Sigma rules under windows log group to their corresponding ECS Fields. | ||
fieldmappings: | ||
EventID: event_uid | ||
HiveName: unmapped.HiveName | ||
fieldB: mappedB | ||
fieldA1: mappedA | ||
CommandLine: windows-event_data-CommandLine | ||
eventName: aws-cloudtrail-eventType | ||
eventSource: aws-cloudtrail-eventSource | ||
requestParameters.arn: aws-cloudtrail-requestParameters-arn | ||
requestParameters.attribute: aws-cloudtrail-requestParameters-attribute | ||
requestParameters.userName: aws-cloudtrail-requestParameters-userName | ||
requestParameters.containerDefinitions.command: aws-cloudtrail-requestParameters-container-definitions-command | ||
userIdentity.sessionContext.sessionIssuer.type: aws-cloudtrail-userIdentity-sessionContext-session_issuer-type | ||
userIdentity.type: aws-cloudtrail-userIdentity-type | ||
userIdentity.arn: aws-cloudtrail-userIdentity-type |
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 |
---|---|---|
@@ -1,12 +1,40 @@ | ||
{ | ||
"properties": { | ||
"windows-event_data-CommandLine": { | ||
"aws-cloudtrail-eventType": { | ||
"type": "alias", | ||
"path": "CommandLine" | ||
"path": "aws.cloudtrail.eventType" | ||
}, | ||
"event_uid": { | ||
"aws-cloudtrail-eventSource": { | ||
"type": "alias", | ||
"path": "EventID" | ||
"path": "aws.cloudtrail.eventSource" | ||
}, | ||
"aws-cloudtrail-requestParameters-arn": { | ||
"type": "alias", | ||
"path": "aws.cloudtrail.requestParameters.arn" | ||
}, | ||
"aws-cloudtrail-requestParameters-attribute": { | ||
"type": "alias", | ||
"path": "aws.cloudtrail.requestParameters.attribute" | ||
}, | ||
"aws-cloudtrail-requestParameters-userName": { | ||
"type": "alias", | ||
"path": "aws.cloudtrail.requestParameters.userName" | ||
}, | ||
"aws-cloudtrail-requestParameters-containerDefinitions-command": { | ||
"type": "alias", | ||
"path": "aws.cloudtrail.requestParameters.containerDefinitions.command" | ||
}, | ||
"aws-cloudtrail-userIdentity-type": { | ||
"type": "alias", | ||
"path": "aws.cloudtrail.userIdentity.type" | ||
}, | ||
"aws-cloudtrail-userIdentity-arn": { | ||
"type": "alias", | ||
"path": "aws.cloudtrail.userIdentity.arn" | ||
}, | ||
"userIdentity-sessionContext-sessionIssuer-type": { | ||
"type": "alias", | ||
"path": "aws.cloudtrail.userIdentity.sessionContext.sessionIssuer.type" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
# this file provides pre-defined mappings for Sigma fields defined for all Sigma rules under windows log group to their corresponding ECS Fields. | ||
fieldmappings: | ||
EventID: event_uid | ||
HiveName: unmapped.HiveName | ||
fieldB: mappedB | ||
fieldA1: mappedA | ||
CommandLine: windows-event_data-CommandLine | ||
record_type: dns-answers-type | ||
query: dns-question-name | ||
parent_domain: dns-question-registered_domain |
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
{ | ||
"properties": { | ||
"windows-event_data-CommandLine": { | ||
"dns-answers-type": { | ||
"type": "alias", | ||
"path": "CommandLine" | ||
"path": "dns.answers.type" | ||
}, | ||
"event_uid": { | ||
"dns-question-name": { | ||
"type": "alias", | ||
"path": "EventID" | ||
"path": "dns.question.name" | ||
}, | ||
"dns-question-registered_domain": { | ||
"type": "alias", | ||
"path": "dns.question.registered_domain" | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# this file provides pre-defined mappings for Sigma fields defined for all Sigma rules under windows log group to their corresponding ECS Fields. | ||
fieldmappings: | ||
EventID: event_uid | ||
HiveName: unmapped.HiveName | ||
fieldB: mappedB | ||
fieldA1: mappedA | ||
CommandLine: windows-event_data-CommandLine | ||
eventName: aws-cloudtrail-eventName | ||
eventSource: aws-cloudtrail-eventSource |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"properties": { | ||
"windows-event_data-CommandLine": { | ||
"aws-cloudtrail-eventSource": { | ||
"type": "alias", | ||
"path": "CommandLine" | ||
"path": "aws.cloudtrail.eventSource" | ||
}, | ||
"event_uid": { | ||
"aws-cloudtrail-eventName": { | ||
"type": "alias", | ||
"path": "EventID" | ||
"path": "aws.cloudtrail.eventName" | ||
} | ||
} | ||
} |
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,35 @@ | ||
{ | ||
"aws": { | ||
"cloudtrail": { | ||
"eventVersion": "1.03", | ||
"userIdentity": { | ||
"type": "IAMUser", | ||
"principalId": "111122223333", | ||
"arn": "arn:aws:iam::111122223333:user/myUserName", | ||
"accountId": "111122223333", | ||
"accessKeyId": "AKIAIOSFODNN7EXAMPLE", | ||
"userName": "myUserName" | ||
}, | ||
"eventTime": "2019-02-01T03:18:19Z", | ||
"eventSource": "s3.amazonaws.com", | ||
"eventName": "ListBuckets", | ||
"awsRegion": "us-west-2", | ||
"sourceIPAddress": "127.0.0.1", | ||
"userAgent": "[]", | ||
"requestParameters": { | ||
"host": [ | ||
"s3.us-west-2.amazonaws.com" | ||
] | ||
}, | ||
"responseElements": null, | ||
"additionalEventData": { | ||
"SignatureVersion": "SigV2", | ||
"AuthenticationMethod": "QueryString" | ||
}, | ||
"requestID": "47B8E8D397DCE7A6", | ||
"eventID": "cdc4b7ed-e171-4cef-975a-ad829d4123e8", | ||
"eventType": "AwsApiCall", | ||
"recipientAccountId": "111122223333" | ||
} | ||
} | ||
} |
Oops, something went wrong.