Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions nursery/interact-with-systemd-via-command-line-on-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
rule:
meta:
name: interact with systemd via command line on Linux
namespace: host-interaction/service
authors:
- akshatpal
description: detect command-line interaction with systemd services or logs on Linux
scopes:
static: basic block
dynamic: call
att&ck:
- Discovery::System Service Discovery [T1007]
references:
- https://man7.org/linux/man-pages/man1/systemctl.1.html
- https://man7.org/linux/man-pages/man1/journalctl.1.html
- https://man7.org/linux/man-pages/man1/systemd-run.1.html
features:
- and:
- or:
- os: linux
Comment on lines +19 to +20
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- or:
- os: linux
- os: linux

- or:
- api: system
- match: create process on Linux
- or:
- string: /\bsystemctl\b/i
- string: /\bjournalctl\b/i
- string: /\bsystemd-run\b/i