-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ti_crowdstrike: populate required threat.intelligence fields #12915
Conversation
fc82ad3
to
1a6adff
Compare
The Security Intelligence view Indicator is populated by logic in kibana[1,2], so make sure we match that logic to make sure the relevant value is visible. [1]https://github.com/elastic/kibana/blob/33c18c72fa019430c6b73503dc3176e0136e3861/x-pack/solutions/security/plugins/threat_intelligence/server/utils/indicator_name.ts#L19C1-L53C1 [2]https://github.com/elastic/kibana/blob/33c18c72fa019430c6b73503dc3176e0136e3861/x-pack/solutions/security/plugins/threat_intelligence/common/types/indicator.ts#L11-L51
1a6adff
to
fe4622e
Compare
🚀 Benchmarks reportTo see the full report comment with |
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
} else if (ctx.ti_crowdstrike.ioc.type == 'md5') { | ||
ctx.threat.indicator.file = ctx.threat.indicator.file ?: [:]; | ||
ctx.threat.indicator.file.hash = ctx.threat.indicator.file.hash ?: [:]; | ||
ctx.threat.indicator.file.hash.md5 = ctx.ti_crowdstrike?.ioc.value; | ||
} else if (ctx.ti_crowdstrike.ioc.type == 'sha256') { | ||
ctx.threat.indicator.file = ctx.threat.indicator.file ?: [:]; | ||
ctx.threat.indicator.file.hash = ctx.threat.indicator.file.hash ?: [:]; | ||
ctx.threat.indicator.file.hash.sha256 = ctx.ti_crowdstrike?.ioc.value; | ||
} else if (ctx.ti_crowdstrike.ioc.type == 'sha1') { | ||
ctx.threat.indicator.file = ctx.threat.indicator.file ?: [:]; | ||
ctx.threat.indicator.file.hash = ctx.threat.indicator.file.hash ?: [:]; | ||
ctx.threat.indicator.file.hash.sha1 = ctx.ti_crowdstrike?.ioc.value; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this we could reduce few checks, but I will leave it to you.
if (mapping == 'file') {
ctx.threat.indicator.file = ctx.threat.indicator.file ?: [:];
ctx.threat.indicator.file.hash = ctx.threat.indicator.file.hash ?: [:];
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's really nice. Thanks
cd50948
to
df11fca
Compare
💚 Build Succeeded
History
cc @efd6 |
|
Package ti_crowdstrike - 2.3.2 containing this change is available at https://epr.elastic.co/package/ti_crowdstrike/2.3.2/ |
Proposed commit message
Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots