-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to the threat intel view (#3289)
* Tag colors in intelligence view * Human readable IOC types * remove debug log * Formatting * Fix lint? * Attempt to bump node versions in actions
- Loading branch information
Showing
4 changed files
with
89 additions
and
43 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
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
const IOCTypes = [ | ||
{ regex: /^(\/[\S]+)+$/i, type: 'fs_path' }, | ||
{ regex: /^([-\w]+\.)+[a-z]{2,}$/i, type: 'hostname' }, | ||
{ regex: /^(\/[\S]+)+$/i, type: 'fs_path', humanReadable: 'Filesystem path' }, | ||
{ regex: /^([-\w]+\.)+[a-z]{2,}$/i, type: 'hostname', humanReadable: 'Hostname' }, | ||
{ | ||
regex: /^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g, | ||
type: 'ipv4', | ||
}, | ||
{ regex: /^[0-9a-f]{64}$/i, type: 'hash_sha256' }, | ||
{ regex: /^[0-9a-f]{40}$/i, type: 'hash_sha1' }, | ||
{ regex: /^[0-9a-f]{32}$/i, type: 'hash_md5' }, | ||
{ regex: /^[0-9a-f]{64}$/i, type: 'hash_sha256', humanReadable: 'SHA256' }, | ||
{ regex: /^[0-9a-f]{40}$/i, type: 'hash_sha1', humanReadable: 'SHA1' }, | ||
{ regex: /^[0-9a-f]{32}$/i, type: 'hash_md5', humanReadable: 'MD5' }, | ||
// Match any "other" selection | ||
{ regex: /./g, type: 'other' }, | ||
{ regex: /./g, type: 'other', humanReadable: 'Other' }, | ||
] | ||
|
||
export {IOCTypes} |
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