Skip to content

Instantly share code, notes, and snippets.

@vicenteherrera
Created March 23, 2020 18:12
Show Gist options
  • Save vicenteherrera/2a6220273a34ba675b02c809a683a889 to your computer and use it in GitHub Desktop.
Save vicenteherrera/2a6220273a34ba675b02c809a683a889 to your computer and use it in GitHub Desktop.
- rule: DB program spawned process
desc: >
a database-server related program spawned a new process other than itself.
This shouldn\'t occur and is a follow on from some SQL injection attacks.
condition: >
proc.pname in (db_server_binaries)
and spawned_process
and not proc.name in (db_server_binaries)
and not postgres_running_wal_e
output: >
Database-related program spawned process other than itself (user=%user.name
program=%proc.cmdline parent=%proc.pname container_id=%container.id image=%container.image.repository)
priority: NOTICE
tags: [process, database, mitre_execution]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment