-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix instances of reserved STIX 2.1 id property (#819)
Co-authored-by: Md Azam <mdazam@ca.ibm.com>
- Loading branch information
1 parent
190e736
commit a696708
Showing
5 changed files
with
198 additions
and
31 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
stix_shifter_modules/alertflex/stix_translation/json/stix_2_1/from_stix_map.json
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,44 @@ | ||
{ | ||
"ipv4-addr": { | ||
"fields": { | ||
"value": ["a.dstIp", "a.srcIp"] | ||
} | ||
}, | ||
"network-traffic": { | ||
"fields": { | ||
"src_port": ["a.srcPort"], | ||
"dst_port": ["a.dstPort"], | ||
"src_ref": ["a.srcIp"], | ||
"dst_ref": ["a.dstIp"] | ||
} | ||
}, | ||
"file": { | ||
"fields": { | ||
"name": ["a.fileName"], | ||
"hashes.'SHA-256'": ["a.hashSha256"], | ||
"hashes.'SHA-1'": ["a.hashSha1"], | ||
"hashes.MD5": ["a.hashMd5"] | ||
} | ||
}, | ||
"process": { | ||
"fields": { | ||
"name": ["a.processName"], | ||
"pid": ["a.processId"] | ||
} | ||
}, | ||
"user-account":{ | ||
"fields": { | ||
"user_id": ["a.userName"] | ||
} | ||
}, | ||
"x_org_alertflex" : { | ||
"fields": { | ||
"agent": ["a.agentName"], | ||
"node": ["a.nodeId"], | ||
"source": ["a.alertSource"], | ||
"type": ["a.alertType"], | ||
"event_id": ["a.eventId"], | ||
"severity": ["a.alertSeverity"] | ||
} | ||
} | ||
} |
123 changes: 123 additions & 0 deletions
123
stix_shifter_modules/alertflex/stix_translation/json/stix_2_1/to_stix_map.json
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,123 @@ | ||
{ | ||
"create_time": [ | ||
{ | ||
"key": "first_observed", | ||
"transformer": "EpochToTimestamp", | ||
"cybox": false | ||
}, | ||
{ | ||
"key": "last_observed", | ||
"transformer": "EpochToTimestamp", | ||
"cybox": false | ||
} | ||
], | ||
"srcip": | ||
[ | ||
{ | ||
"key": "ipv4-addr.value", | ||
"object": "src_ip" | ||
}, | ||
{ | ||
"key": "ipv6-addr.value", | ||
"object": "src_ip" | ||
}, | ||
{ | ||
"key": "network-traffic.src_ref", | ||
"object": "nt", | ||
"references": "src_ip" | ||
} | ||
], | ||
"dstip": [ | ||
{ | ||
"key": "ipv4-addr.value", | ||
"object": "dst_ip" | ||
}, | ||
{ | ||
"key": "ipv6-addr.value", | ||
"object": "dst_ip" | ||
}, | ||
{ | ||
"key": "network-traffic.dst_ref", | ||
"object": "nt", | ||
"references": "dst_ip" | ||
} | ||
], | ||
"srcport": { | ||
"key": "network-traffic.src_port", | ||
"object": "nt", | ||
"transformer": "ToInteger" | ||
}, | ||
"dstport": { | ||
"key": "network-traffic.dst_port", | ||
"object": "nt", | ||
"transformer": "ToInteger" | ||
}, | ||
"protocol": { | ||
"key": "network-traffic.protocols", | ||
"object": "nt", | ||
"transformer": "ToLowercaseArray" | ||
}, | ||
"domain-name": { | ||
"fields": { | ||
"value": ["url.domain"] | ||
} | ||
}, | ||
"user": { | ||
"key": "user-account.user_id" | ||
}, | ||
"file": { | ||
"key": "file.name" | ||
}, | ||
"process": { | ||
"key": "process.name", | ||
"object": "process" | ||
}, | ||
"sha1": { | ||
"key": "file.hashes.SHA-1", | ||
"object": "file" | ||
}, | ||
"sha256": { | ||
"key": "file.hashes.SHA-256", | ||
"object": "file" | ||
}, | ||
"md5": { | ||
"key": "file.hashes.MD5", | ||
"object": "file" | ||
}, | ||
"event": { | ||
"key": "x-org-alertflex.event", | ||
"object": "x_org_alertflex" | ||
}, | ||
"severity": { | ||
"key": "x-org-alertflex.severity", | ||
"object": "x_org_alertflex" | ||
}, | ||
"category": { | ||
"key": "x-org-alertflex.category", | ||
"object": "x_org_alertflex" | ||
}, | ||
"description": { | ||
"key": "x-org-alertflex.description", | ||
"object": "x_org_alertflex" | ||
}, | ||
"info": { | ||
"key": "x-org-alertflex.info", | ||
"object": "x_org_alertflex" | ||
}, | ||
"agent": { | ||
"key": "x-org-alertflex.agent", | ||
"object": "x_org_alertflex" | ||
}, | ||
"source": { | ||
"key": "x-org-alertflex.source", | ||
"object": "x_org_alertflex" | ||
}, | ||
"type": { | ||
"key": "x-org-alertflex.finding_type", | ||
"object": "x_org_alertflex" | ||
}, | ||
"node": { | ||
"key": "x-org-alertflex.node", | ||
"object": "x_org_alertflex" | ||
} | ||
} |
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
Oops, something went wrong.