mandiant / mandiant/capa-rules
detect journalctl/systemctl/systemd interactions on Linux
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 736
- Forks
- 245
- Avg merge
- 4d 53m
- Merged PRs (30d)
- 2
Description
## Prerequisites
* [x] Put an X between the brackets on this line if you have done all of the following:
* Checked that your rule idea isn't already filed: [search](https://github.com/mandiant/capa-rules/issues?q=is%3Aissue+is%3Aopen+)
## Summary
Add a new detection rule for journalctl-related interactions (e.g., enumeration via `journalctl -u/--unit`, rotation/clearing via `journalctl --rotate/--vacuum-time/--vaccum-files`, etc.) and/or systemctl-related interactions (e.g., reloading units via `systemctl daemon-reload`, enabling/disabling/starting/stopping units via `systemctl disable/enable/start/stop`)
## Examples
- 6a5bda892608df18c543036b71f46dd2ae533c85256c40dffeb23ea78c70f021
- Journal enumeration via `journalctl -xe --no-pager`
- Daemon reload via `systemctl daemon-reload`
- Starting/stopping services via `systemctl start`
## Features
- strings
## Additional context
## Rule details
### Namespace
- host-interaction/service
- anti-analysis/anti-forensic/clear-logs
### References
### Other rule meta information
- ATT&CK
- T1562.012: Disable or Modify Linux Audit System // for tampering with systemd services
- T1562.001: Disable or Modify Tools // for tampering with systemd services
- T1543.002: Create or Modify System Process (systemd Service)
- T1082: System Information Discovery // for interacting with jouranld
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the rule-name convention in doc/format.md and review existing rules in the host-interaction/service and anti-analysis/anti-forensic/clear-logs namespaces. Use the supplied sample hash and command examples to define the intended journalctl and systemctl coverage; done means a new rule or rules with appropriate ATT&CK metadata and matching strings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems, security
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100