Anvilogic high experimental spl
Package installation [splunk-edr]
Some programming languages, like Python, come with an easy, more or less official method of installing dependencies for your projects. These installers are usually tied to public code repositories where anyone can freely upload code packages for others to use. The intent of this use case is to identify installation of packages, with common repositories using pip, gem and npm. Use case will be used to with additional threat identifiers to potentially identify Dependency confusion style attacks.
Detection Logic
`get_endpoint_data` `get_endpoint_data_edr` (event_simpleName="ProcessRollup2"
OR TERM(ProcessRollup2)) (TERM(npm)
OR TERM(pip)
OR TERM(gem)) TERM(install)
| regex process="(?i)install\s"
| rex field=process "(?<reqs>(?i)requirements\.txt")
| rex field=process "(?<extra>(?i)(\-{2}extra)?\-index\-url(\s+\S+)")
| rex field=process "(?<source1>(?i)\-{2}source(\s+\S+)")
| eval keywords=mvappend(reqs, extra, source1)
| table _time, host, user, signature_id, process, process_*, parent_*, keyword
| bin span=1s
| stats values(*) as * by _time, host
| fields - keywords `hec_collect` Field Validations
Loading…
Comments (0)
Loading comments...