agentleFS
Bizaza-devsBizaza-devs/Claude-PurpleTeam/skills/emulate-network-c2-exfil/SKILL.md

emulate-network-c2-exfil

Skill0 starsChanged 4 days agoMITView on GitHub

Test-card library for benign network emulation of C2 and exfiltration in an authorised lab or approved window: jittered HTTP beaconing with a Caldera Sandcat agent, DNS tunnelling to a test domain you own and DGA lookups with AlphaSOC flightsim, cleartext exfil of synthetic data, upload to an approved cloud test bucket, exfil over the C2 channel, Tor connection attempts, rclone-style sync and tool download from a lab web server. Each card gives the published procedure, expected Zeek, Suricata, proxy, DeviceNetworkEvents and DNS server telemetry, the detection that should fire, outcome evidence and cleanup. T1071.001, T1071.004, T1572, T1568.002, T1048.003, T1567.002, T1041, T1090.003, T1105. Use when asked to 'emulate C2', 'test beacon detection', 'simulate DNS tunnelling', 'run flightsim' or 'test exfil detection'.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 5 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Not for: building C2 infrastructure for real operations, moving real data, testing against infrastructure you do not own or have not had …

    line 26
  2. Very specific:

    No evasion: Do not add proxy, TLS-inspection, DNS-filter or EDR exclusions to let a test through, and use only the tool's documented …

    line 46
  3. Distinctive:

    Preconditions: test domain registered by your organisation, NS delegated to a lab authoritative server you control with query logging.

    line 129
  4. Distinctive:

    Cleanup: stop the tool, delete its binary and output, remove test records or wildcard from the zone, keep the authoritative log as …

    line 138
  5. Very specific:

    Common gaps & fixes: only the forwarder-to-internet leg is logged, so the client is lost -> enable internal resolver query logging …

    line 139
  6. Distinctive:

    Cleanup: delete the binary and output.

    line 154
  7. Very specific:

    Cleanup: run the test's -Cleanup, delete synthetic files on both ends, disable the test credentials, remove the egress rule.

    line 170
  8. Distinctive:

    Cleanup: delete objects and bucket (or let lifecycle expire them after evidence export), revoke credentials, remove local files, revert …

    line 186
  9. Distinctive:

    Cleanup: run the operation's cleanup, delete staging directory and archives, kill the agent, delete received files on the Caldera server, …

    line 202
  10. Very specific:

    Cleanup: stop and delete the Tor binaries and data directory (-Cleanup), revert snapshot, remove any egress exception.

    line 218
  11. Very specific:

    Preconditions: test-only remote and credentials created for the window.

    line 225
  12. Very specific:

    Cleanup: delete rclone binary, rclone.conf and synthetic data, delete remote objects, revoke credentials, remove the egress rule, revert …

    line 234
  13. Very specific:

    Common gaps & fixes: only certutil covered -> cover BITS, PowerShell, curl.

    line 251

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Emulate: network C2 and exfiltration (test cards)

Network C2 and exfil tests are the easiest purple tests to run and the easiest to get wrong: the traffic leaves your perimeter, it looks exactly like an intrusion to the SOC, the MSSP and upstream providers, and "not seen" is often a sensor gap rather than a detection gap. Every card below is benign by construction: your own infrastructure, synthetic data, a published procedure, a declared window.

When to use

  • A purple exercise (/exercise, adversary-emulation-planning) or a single test (/emulate, /purple) needs a network C2 or exfiltration technique run and scored.
  • A rule from hunt-c2-beaconing, hunt-exfiltration or network-detection-suricata-zeek needs a true-positive run before it is called done (detection-engineering).
  • Regression after a proxy, firewall, TLS-inspection, DNS-resolver, Zeek/Suricata sensor or egress-policy change.
  • Proving that a network log source (resolver query log, proxy, Zeek dns.log) really reaches the SIEM; gaps go to logging-coverage.

Not for: building C2 infrastructure for real operations, moving real data, testing against infrastructure you do not own or have not had approved, or tuning traffic to slip past controls. Executor manuals: atomic-red-team, caldera-operations. Endpoint cards: emulate-windows-endpoint.

Ground rules

  • Gate first. Lab, or production under a written authorisation plus change ticket naming source hosts, every destination (domain, IP, bucket, remote), techniques, window, operator and abort contact (purpleteam-methodology checklist). No gate, card is not run.
  • Your infrastructure only. Destinations are test domains, servers and buckets owned by your organisation and listed in the ticket. Simulators that contact vendor or real-world indicator infrastructure (flightsim) are allowed only when the scope names them; record the destinations they used.
  • Synthetic data only. Generated files carrying the test ID as a marker string (PT-2026-031-SYNTHETIC); never real records, credentials or customer data, not even "a small sample". For DLP checks use the DLP vendor's published test content.
  • Egress opened for the window, not forever. Any allow-list rule carries the change reference and an expiry; removing it is part of cleanup.
  • No evasion. Do not add proxy, TLS-inspection, DNS-filter or EDR exclusions to let a test through, and use only the tool's documented settings. A block is the result blocked, not a failed test.
  • Deconflict wider than the SOC. Tell the SOC lead, the MSSP/MDR and the NDR owner: hosts, destinations, window, test ID. A no-notice test needs the SOC lead's approval and a white cell on call.
  • Evidence or it did not happen. An outcome needs the executor log, a raw network record (Zeek uid, firewall session, DeviceNetworkEvents row) and the alert ID - or the searches run, all empty, plus a sensor-health check (capture_loss.log, Suricata stats.log drops) for the window.
  • Snapshot and clean up. Snapshot the source VM; afterwards remove agents, files, configs, DNS records, bucket objects and firewall rules, then verify.

Workflow

  1. Pick cards and confirm the gate. Record the test ID, card, operator, UTC window.
  2. Stand up test infrastructure and write it into the card: Caldera server, lab web/FTP/SFTP server, test domain with an authoritative server you control, cloud test bucket with logging on. Destination IPs, names and certificate details let the SOC tell the test from a real intrusion.
  3. Check sensors before running: Zeek capture loss, Suricata drops and rule update date, resolver query logging for the resolver the test host uses, proxy logging, EDR onboarding of the source host, NTP sync.
  4. Write the expectation (telemetry and detection, fields below) into the card.
  5. Snapshot, open the egress window, notify the SOC/MSSP.
  6. Run with the executor; record start/stop, source host/IP, process and destination.
  7. Wait the agreed latency (scheduled analytics typically run on 5-60 min cycles; beacon maths needs hours of data), then query raw telemetry first (is it there?), then alerts.
  8. Score on the bundle scale: blocked, alerted, logged, not seen, partial.
  9. Clean up and verify; close the egress rule.
  10. Hand off gaps: logic to detection-engineering, telemetry to logging-coverage, prevention to hardening-cloud or the egress-policy owner; record in purple-exercise-tracking; summarise with /scorecard.

Executor invocations only (inspect before running, one test per run):

# Atomic Red Team: confirm local numbers, names and input-argument names first
Invoke-AtomicTest T1071.004 -ShowDetailsBrief
Invoke-AtomicTest T1071.004 -TestNames "DNS Long Domain Query" -ShowDetails
Invoke-AtomicTest T1071.004 -TestNames "DNS Long Domain Query" -CheckPrereqs
Invoke-AtomicTest T1071.004 -TestNames "DNS Long Domain Query" -InputArgs @{ "<input_from_ShowDetails>" = "<your-test-domain>" } -ExecutionLogPath C:\PT\PT-2026-031.csv
Invoke-AtomicTest T1071.004 -TestNames "DNS Long Domain Query" -Cleanup
# AlphaSOC flightsim: check current maintenance status and the module list of the build you install
flightsim run -h            # usage and modules available in this build (verify)
flightsim run dga           # one module per run, inside the declared window

Caldera runs are driven from the server UI or API: create an operation with the named ability or adversary profile against a single agent group, record the operation ID and export the operation report afterwards (caldera-operations).

Test cards

Zeek fields assume default logs; ja3/ja4 need their packages. Suricata rule names differ between ET Open/Pro versions: grep your ruleset rather than trusting a name from memory. Defender XDR ActionType values marked "verify" depend on features such as network protection being enabled.

T1071.001 Jittered HTTP beaconing (Caldera agent)

  • Why test it: HTTP(S) is the default C2 transport. Proves the beacon maths in hunt-c2-beaconing tolerates jitter and that traffic can be attributed to a process.
  • Published procedure: MITRE Caldera Sandcat agent with the HTTP contact, deployed with the command from the Caldera agent deployment page; jitter set only through the documented agent sleep minimum/maximum (e.g. 50-70 s). Supplementary Atomic Red Team T1071.001 test named 'Malicious User Agents - Powershell' (confirm the number with -ShowDetailsBrief) for the user-agent angle. flightsim c2 module (check current maintenance status) contacts known-C2 indicators, not your server: treat it as a separate reputation card.
  • Preconditions: Caldera server on your own lab or cloud host, address in the ticket; egress from the source host to that host and port allow-listed for the window; snapshotted lab host; at least 2 h at ~60 s sleep (100+ check-ins), or overnight to exercise the 24 h hunt window.
  • Expected telemetry:
    • Zeek: conn.log many short sessions to the same id.resp_h/id.resp_p, stable orig_bytes/resp_bytes; http.log POSTs with fixed host, uri, user_agent (record the values from the first check-in; default contact path is /beacon, verify); with HTTPS, ssl.log server_name and validation_status (self-signed unless you installed a real certificate).
    • Suricata: ET rules naming Caldera/Sandcat only if your ruleset has them (verify); no alert is a likely and valid finding.
    • Firewall/proxy: periodic allowed sessions, category uncategorised or newly seen.
    • Defender XDR: DeviceNetworkEvents ConnectionSuccess with InitiatingProcessFileName = agent binary (the default deploy command gives it a masquerading name; record it); Sysmon 3; possibly an EDR alert or quarantine of the agent.
    • DNS: one lookup per TTL for the C2 name if you used a domain.
  • Expected detection: hunt-c2-beaconing interval statistics (KQL/SPL, CV and Bowley thresholds, rarity of destination) or RITA beacon score; newly observed domain. Alert idea: periodic outbound from an unsigned binary in a user-writable path to a destination at most 3 hosts use.
  • Outcome evidence: blocked = EDR quarantine or proxy deny log line; alerted = alert ID and rule tied to the host and destination; logged = Zeek uids and DeviceNetworkEvents rows, no alert; not seen = empty queries plus capture-loss check.
  • Cleanup: kill the agent from Caldera, delete the binary, confirm no process or persistence remains, stop the operation, export the report, revert the snapshot, remove the egress rule.
  • Common gaps & fixes: beacon hunt runs weekly -> schedule daily; proxy collapses clients to one IP -> score on client/user fields; jitter above the CV cut-off -> add Bowley skew, MAD and size-mode scoring; no TLS inspection -> pivot on SNI, JA3/JA4, certificate age.

T1071.004 / T1572 DNS tunnelling simulation to a test domain you own (flightsim)

  • Why test it: DNS leaves most networks even when web egress is filtered; tests client-level resolver logging and tunnel analytics.
  • Published procedure: AlphaSOC flightsim tunnel-dns module (check current maintenance status; check in the module usage whether your build can target a domain you specify, verify; if it only uses its built-in domain, list that domain in the ticket). Atomic Red Team T1071.004 tests named 'DNS Long Domain Query', 'DNS Large Query Volume' and 'DNS Regular Beaconing' (confirm the number with -ShowDetailsBrief) with the domain input set to your test domain. Caldera DNS tunnelling contact for Sandcat where your version offers it (verify).
  • Preconditions: test domain registered by your organisation, NS delegated to a lab authoritative server you control with query logging; the test host uses the normal corporate resolver so the real path is tested; generated labels only, no file content.
  • Expected telemetry:
    • Zeek: dns.log high count of unique query values under one registered domain, long leftmost labels, qtype_name TXT/NULL/CNAME share, rcode_name; the lab authoritative server log shows the queries arrived (proves egress).
    • Suricata: a local dns.query rule for the test domain (network-detection-suricata-zeek example 2) should fire; ET rules for long or anomalous DNS queries if enabled (verify names).
    • Firewall/proxy: protective-DNS or DNS-firewall category hits (tunnelling, newly seen domain).
    • Defender XDR: Sysmon 22 or DeviceNetworkEvents with the querying process (DnsConnectionInspected where DNS inspection is on, verify).
    • DNS server: Windows DNS Server analytic/audit log, BIND or Infoblox query log, or Sentinel DnsEvents / ASIM _Im_Dns, with the client IP.
  • Expected detection: hunt-c2-beaconing DNS tunnelling queries (unique subdomains, average label length, TXT volume per client and registered domain); RITA exploded DNS. Alert idea: one client, one registered domain, more than N unique subdomains per hour.
  • Outcome evidence: blocked = resolver/DNS firewall refusal (NXDOMAIN rewrite, sinkhole answer) and nothing at your authoritative server; alerted = alert ID; logged = query rows with client IP; not seen = empty resolver and Zeek searches with logging confirmed on.
  • Cleanup: stop the tool, delete its binary and output, remove test records or wildcard from the zone, keep the authoritative log as evidence, revert snapshot.
  • Common gaps & fixes: only the forwarder-to-internet leg is logged, so the client is lost -> enable internal resolver query logging (logging-coverage); registered-domain parsing breaks on multi-label suffixes -> use a public-suffix-aware parser; TXT answers not parsed -> fix the parser before trusting length metrics.

T1568.002 DGA lookups (flightsim)

  • Why test it: NXDOMAIN bursts across random-looking domains are a cheap, high-value detection if client DNS logs exist.
  • Published procedure: AlphaSOC flightsim dga module (check current maintenance status). Atomic Red Team: list T1568.002 with -ShowDetailsBrief and use a test only if it performs lookups without contacting live infrastructure (no test name assumed here, verify). Caldera: no standard ability assumed (verify).
  • Preconditions: lookups go through the corporate resolver; generated names can collide with domains registered by third parties, so the run is lookups only (confirm from the module output that no connections follow); window declared to protective-DNS owners.
  • Expected telemetry:
    • Zeek: dns.log burst of distinct query values with high-entropy labels across several TLDs, rcode_name NXDOMAIN majority.
    • Suricata: usually nothing; record it rather than assuming coverage.
    • Firewall/proxy: protective-DNS DGA or newly-registered-domain category if subscribed.
    • Defender XDR: Sysmon 22 / DeviceNetworkEvents from the flightsim process.
    • DNS server: NXDOMAIN response volume for one client in the resolver log.
  • Expected detection: hunt-c2-beaconing DGA / NXDOMAIN SPL (distinct NXDOMAIN domains per source) and URL Toolbox entropy query. Alert idea: more than 100 distinct NXDOMAIN names per host per hour, excluding resolvers and mail gateways.
  • Outcome evidence: blocked = DNS filter answers; alerted = alert ID; logged = NXDOMAIN rows by client; not seen = empty with logging confirmed.
  • Cleanup: delete the binary and output; nothing persists on the host; revert snapshot.
  • Common gaps & fixes: resolver logs only successful answers -> log responses including failures; threshold tuned on mail servers -> separate server roles; entropy only on the full name -> score the leftmost label.

T1048.003 Exfil over an unencrypted protocol with synthetic data

  • Why test it: cleartext FTP/HTTP/SMTP should be both visible in content and blocked by egress policy from workstations; tests both.
  • Published procedure: Atomic Red Team T1048.003 tests named 'Exfiltration Over Alternative Protocol - HTTP', 'Exfiltration Over Alternative Protocol - SMTP' and 'MAZE FTP Upload' (confirm the number with -ShowDetailsBrief), input arguments pointing at your lab receiver and the synthetic file. Caldera ability 'Exfil Compressed Archive to FTP' (verify name). flightsim cleartext module (check current maintenance status; verify what it sends and where).
  • Preconditions: lab FTP/HTTP/SMTP receiver you control, test-only credentials created for the window; synthetic file of recorded size and hash carrying the marker string; egress for that port and destination only.
  • Expected telemetry:
    • Zeek: ftp.log command STOR with arg filename; http.log POST with large request_body_len; smtp.log mailfrom/rcptto; files.log filename, mime_type, hash; conn.log orig_bytes far above resp_bytes.
    • Suricata: a local file.data / content rule on the marker string proves content visibility; ET POLICY rules for outbound cleartext protocols if enabled (verify names).
    • Firewall/proxy: App-ID or port (ftp, smtp) allowed or denied with SentBytes.
    • Defender XDR: DeviceNetworkEvents to port 21/25/80 with the initiating process (e.g. powershell.exe), DeviceProcessEvents command line.
    • DNS: lookup of the receiver name, if a name was used.
  • Expected detection: hunt-exfiltration upload ratio (Zeek) and volume vs baseline; policy alert for direct SMTP/FTP from workstations; the marker-string Suricata rule. Alert idea: workstation sends > 50 MB over a cleartext protocol to an external host.
  • Outcome evidence: blocked = firewall deny for the session; alerted = alert ID; logged = ftp/http/smtp rows with byte counts; not seen = empty plus sensor check.
  • Cleanup: run the test's -Cleanup, delete synthetic files on both ends, disable the test credentials, remove the egress rule.
  • Common gaps & fixes: workstations may send SMTP directly -> egress policy via mail relay only (prevention owner); Zeek FTP analyser not loaded -> enable; volume rule only on HTTPS logs -> include cleartext protocols.

T1567.002 Upload of synthetic data to an approved cloud test bucket

  • Why test it: cloud storage is the dominant exfil destination in ransomware reporting and blends with sanctioned SaaS.
  • Published procedure: Atomic Red Team T1567.002 test named 'Exfiltrate data with rclone to cloud Storage - Mega (Windows)' (confirm the number with -ShowDetailsBrief; it targets MEGA, so run it only if scope approves a test account there, otherwise use the rclone card below against your own bucket). Caldera ability 'Exfil Compressed Archive to S3 via AWS CLI' (verify name). flightsim: no matching module assumed (verify).
  • Preconditions: private bucket in a sandbox cloud account owned by your organisation, public access blocked, CloudTrail S3 data events or Azure StorageBlobLogs on, lifecycle rule to expire objects; short-lived write-only credentials for that bucket; synthetic data only (exfil outside the organisation stays lab-only per the gate).
  • Expected telemetry:
    • Zeek: ssl.log server_name of the storage endpoint; conn.log large orig_bytes.
    • Suricata: typically no alert on sanctioned cloud endpoints; record it.
    • Firewall/proxy: PUT/POST with bytes_out, cloud-storage category, tenant/instance field if a CASB is in path.
    • Defender XDR: DeviceNetworkEvents RemoteUrl with the uploading process (aws.exe, rclone.exe, powershell.exe); CloudAppEvents where Defender for Cloud Apps covers the service (verify).
    • DNS: lookups for the storage endpoint. Cloud side: PutObject in CloudTrail of the test account proves arrival.
  • Expected detection: hunt-exfiltration personal-cloud upload SPL and per-host volume vs baseline; CASB upload to unsanctioned instance. Alert idea: non-browser process uploads more than X MB to a storage endpoint outside sanctioned tenants.
  • Outcome evidence: blocked = proxy/CASB/tenant-restriction deny; alerted = alert ID; logged = proxy rows plus PutObject; not seen = empty searches with proxy coverage confirmed for the host.
  • Cleanup: delete objects and bucket (or let lifecycle expire them after evidence export), revoke credentials, remove local files, revert snapshot.
  • Common gaps & fixes: whole provider allow-listed -> distinguish by bucket, tenant or account; no TLS inspection -> rely on bytes, process and SNI; no data events -> enable on sensitive buckets (hardening-cloud).

T1041 Exfil over the C2 channel (Caldera exfil ability with dummy files)

  • Why test it: exfil inside an existing beacon has no new destination; only volume change and host staging reveal it.
  • Published procedure: Caldera Stockpile abilities 'Create staging directory', 'Compress staged directory' and 'Exfil staged directory', or the Stockpile 'Thief' adversary profile (verify names in the Abilities view, filtered by technique). Atomic Red Team T1041 test named 'C2 Data Exfiltration' (confirm the number with -ShowDetailsBrief), destination set to your lab server. flightsim: no matching module assumed (verify).
  • Preconditions: the agent and server from the T1071.001 card; a seeded directory of synthetic marker files; restrict file-discovery facts to that directory, because collection abilities search user folders by extension; lab host with no real user data.
  • Expected telemetry:
    • Zeek: http.log POST to the server's upload path (record it from the server log) with request_body_len far above normal check-ins; conn.log orig_bytes spike on the beacon pair; files.log filename over cleartext HTTP.
    • Suricata: a local rule on the upload path or marker string if HTTP is cleartext.
    • Firewall/proxy: bytes_out spike on the same destination.
    • Defender XDR: DeviceProcessEvents for the archiver used by the ability, DeviceFileEvents archive in the staging directory, DeviceNetworkEvents same process and destination.
    • DNS: nothing new; that is the point of the technique.
  • Expected detection: hunt-exfiltration (staging artefact plus network record, the two-source rule) and hunt-c2-beaconing for the channel. Alert idea: established periodic pair whose orig_bytes jumps more than 10x its median.
  • Outcome evidence: blocked = EDR stops archiver or upload; alerted = alert ID on staging or volume; logged = archive event plus POST rows; not seen = empty with sensors healthy.
  • Cleanup: run the operation's cleanup, delete staging directory and archives, kill the agent, delete received files on the Caldera server, revert snapshot.
  • Common gaps & fixes: volume analytics only daily per host -> per-pair change detection; archive detection only for password flags -> add staging-path and size rules; no byte fields in MDE -> join with Zeek or firewall.

T1090.003 Tor / proxy connection attempt (flightsim)

  • Why test it: Tor from a corporate host is rarely legitimate; tests whether the block is also an alert.
  • Published procedure: flightsim Tor-related module if your build lists one (check current maintenance status; verify the module name with flightsim run -h). Atomic Red Team T1090.003 tests named 'Tor Proxy Usage - Windows' and 'Tor Proxy Usage - Debian/Ubuntu' (confirm the number with -ShowDetailsBrief); their prerequisites fetch the Tor bundle, so lab only and from the official source named in the ticket. Caldera: none assumed (verify).
  • Preconditions: policy decided first (block, alert, or both); attempt only, no browsing and no test data through the circuit; short window.
  • Expected telemetry:
    • Zeek: conn.log to relay IPs on their OR ports (commonly 9001 or 443); ssl.log random-looking server_name values in Tor link handshakes (verify for current Tor versions).
    • Suricata: ET Tor relay IP-list rules if enabled and updated (verify).
    • Firewall/proxy: App-ID tor (Palo Alto) or threat-intel IP-list hits, allowed or denied.
    • Defender XDR: DeviceProcessEvents tor.exe, DeviceNetworkEvents ConnectionSuccess/ConnectionFailed; network protection block in DeviceEvents (ExploitGuardNetworkProtectionBlocked, verify).
    • DNS: little or nothing, since bootstrap uses built-in directory addresses; quiet DNS is expected, not a gap.
  • Expected detection: network-detection-suricata-zeek relay-list rules; threat-intel-ioc relay enrichment; EDR process rule for Tor clients. Alert idea: Tor client process or relay-list hit from any corporate host.
  • Outcome evidence: blocked = firewall/NP deny (note whether the SOC got an alert: a silent block is a visibility gap); alerted = alert ID; logged = sessions to relay IPs; not seen = empty with intel list date recorded.
  • Cleanup: stop and delete the Tor binaries and data directory (-Cleanup), revert snapshot, remove any egress exception.
  • Common gaps & fixes: stale relay list -> schedule feed updates; block without alert -> forward deny events to the SIEM and alert on them; bridges/obfs4 not covered by lists -> separate card only if scope asks.

T1567 Rclone-style sync of synthetic data to an approved remote

  • Why test it: rclone is the most reported ransomware exfil tool; tests process, config-file and volume detections together.
  • Published procedure: Atomic Red Team tests named 'Exfiltration Over Alternative Protocol - FTP - Rclone' (T1048.003) and 'Exfiltrate data with rclone to cloud Storage - Mega (Windows)' (T1567.002) (confirm the number with -ShowDetailsBrief), input arguments set to your own SFTP/FTP/S3 remote; or the official rclone binary used with its documented copy/sync commands against that remote. flightsim ssh-exfil / ssh-transfer modules for SSH-based transfer (check current maintenance status; verify the destination is configurable). Caldera: none assumed (verify).
  • Preconditions: test-only remote and credentials created for the window; rclone.conf written for this test in the test folder; synthetic dataset of recorded size large enough to cross your volume thresholds.
  • Expected telemetry:
    • Zeek: conn.log/ssl.log large orig_bytes to the remote; http.log user_agent starting rclone/ if cleartext or inspected.
    • Suricata: ET POLICY rule for rclone user-agent if your ruleset has one (verify).
    • Firewall/proxy: SentBytes / bytes_out to the remote; proxy user-agent rclone/....
    • Defender XDR: DeviceProcessEvents rclone.exe with copy/sync, --config, transfer flags, ProcessVersionInfoOriginalFileName; DeviceFileEvents rclone.conf created; Sysmon 1/3/11.
    • DNS: lookup of the remote. Destination: SFTP server log or PutObject proves arrival.
  • Expected detection: hunt-exfiltration rclone process and rclone.conf KQL, volume vs baseline. Alert idea: rclone by name, original file name or arguments on any host outside the sanctioned backup servers.
  • Outcome evidence: blocked = EDR/application control block or egress deny; alerted = alert ID; logged = process, file and byte records; not seen = empty with EDR health confirmed.
  • Cleanup: delete rclone binary, rclone.conf and synthetic data, delete remote objects, revoke credentials, remove the egress rule, revert snapshot.
  • Common gaps & fixes: rule on file name only -> add original file name, arguments and user-agent; daily z-score misses slow sync -> cumulative bytes per destination over 30 days; renamed binaries are a separate T1036 card, not part of this one.

T1105 Tool download from a lab web server

  • Why test it: ingress tool transfer by built-in binaries precedes most hands-on intrusions.
  • Published procedure: Atomic Red Team T1105 tests named 'Windows - PowerShell Download', 'Windows - BITSAdmin BITS Download', 'certutil download (urlcache)' and 'curl Download File' (confirm the number with -ShowDetailsBrief), remote-URL input set to your lab web server. Caldera: the Sandcat deploy download is itself a T1105 event worth scoring. flightsim: no matching module assumed (verify).
  • Preconditions: lab HTTP and HTTPS server you control serving a benign file (text file or known-good utility); optionally the EICAR test file as a separate run to test download-time AV (expected blocked).
  • Expected telemetry:
    • Zeek: http.log user_agent per tool (BITS Microsoft BITS/..., certutil CertUtil URL Agent, PowerShell WindowsPowerShell/..., curl/...), uri, resp_mime_types; files.log mime_type, hashes.
    • Suricata: network-detection-suricata-zeek example 4 (PE over HTTP) if the file is a PE; ET POLICY rules for certutil/BITS user-agents if enabled (verify names).
    • Firewall/proxy: URL, user-agent, category, bytes in.
    • Defender XDR: DeviceProcessEvents (certutil.exe, bitsadmin.exe, powershell.exe, curl.exe), DeviceNetworkEvents, DeviceFileEvents with FileOriginUrl; Sysmon 1, 3, 11 and 15 (Zone.Identifier stream).
    • DNS: lookup of the lab server name.
  • Expected detection: hunt-lolbins (certutil/bitsadmin download), network-detection-suricata-zeek PE-over-HTTP rule, hunt-c2-beaconing rare user-agent. Alert idea: LOLBin process with an outbound connection and a file written with an external FileOriginUrl.
  • Outcome evidence: blocked = AV/EDR or proxy block event; alerted = alert ID; logged = process, network and file rows; not seen = empty with sensors healthy.
  • Cleanup: -Cleanup for each test, verify the downloaded file and any BITS job are gone, remove the file from the lab server, revert snapshot.
  • Common gaps & fixes: only certutil covered -> cover BITS, PowerShell, curl; HTTPS hides user-agent -> rely on EDR process-network join; downloads from "trusted" CDNs allow-listed -> score by process, not destination.

False positives & benign look-alikes

Look-alikeWhy it resembles a cardHow to separate
EDR/AV, MDM and update agentsPeriodic HTTPS check-ins (T1071.001)Signed vendor binary, vendor domain, fleet-wide prevalence
AV reputation and CDN DNS lookupsLong, high-entropy labels (T1071.004, T1568.002)Well-known vendor domains, many hosts, no TXT payloads
Backup and sync clientsLarge uploads to cloud storage (T1567.002, T1567)Service account, schedule, sanctioned tenant and bucket
IT using rclone or curl for migrationsSame tooling as the cardChange ticket, admin host, sanctioned remote
Software deployment via BITS / PowerShellIngress tool transfer (T1105)Deployment server destination, signed payload
Privacy tools on developer laptopsTor or proxy clients (T1090.003)Policy exception on record, otherwise still a finding
Other purple or red-team activityIt is emulationRules of engagement and deconfliction contact; never assume

Anything outside the card's hosts, destinations or window is not the purple team until proven: stop and hand to alert-triage.

Pitfalls

  • Scoring not seen without checking capture loss, SPAN coverage and the resolver the host actually used.
  • Running the beacon card for 20 minutes and expecting a 24 h beacon hunt to score it.
  • Testing from a host that bypasses the proxy (or only through it) and claiming coverage for both paths.
  • Letting Caldera file-discovery abilities run against real user folders.
  • Using real sample data "because synthetic data does not trip DLP": use the DLP vendor's test content instead.
  • Leaving test domains, wildcard records, buckets or egress exceptions alive after the window: they become real attack surface.
  • Treating a silent block as a pass: prevention without an alert is blocked plus a visibility gap.
  • Trusting flightsim module names or Atomic test numbers from an older document.

Output

One completed card per run, filed in purple-exercise-tracking:

## PT-2026-031 - T1071.004 DNS tunnelling - <UTC start-end>
- Procedure: <tool, version/commit, test name or module, GUID/ability ID>
- Source: <host, IP, process, account>   Destination: <test domain / IP / bucket>
- Sensors checked: <Zeek capture loss %, Suricata drops, resolver logging, proxy>
- Expected telemetry / detection: <from the card>
- Observed: <Zeek uids, firewall sessions, DeviceNetworkEvents rows, alert IDs, time to alert>
- Outcome: blocked | alerted | logged | not seen | partial   Evidence: <refs>
- Cleanup verified: <what, by whom>   Egress rule removed: <change ref>
- Gap and hand-off: <detection-engineering / logging-coverage / prevention owner, ticket>

Hand-offs: rules to detection-engineering and network-detection-suricata-zeek; hunts to hunt-c2-beaconing, hunt-exfiltration, hunt-lolbins; telemetry gaps to logging-coverage; cloud prevention to hardening-cloud; scoring via /scorecard; retests via /emulate or /purple.

References

  • MITRE ATT&CK: https://attack.mitre.org/techniques/T1071/001/, T1071.004, T1572, T1568.002, T1048.003, T1567.002, T1041, T1090.003, T1567, T1105
  • MITRE Caldera documentation: Sandcat agent, contacts, Stockpile abilities and adversaries
  • Red Canary: Atomic Red Team atomics and Invoke-AtomicRedTeam wiki
  • AlphaSOC Network Flight Simulator (flightsim) README and module list
  • Zeek documentation: conn, dns, http, ssl, ftp, smtp, files logs
  • Suricata User Guide: DNS, TLS, HTTP and file keywords; Emerging Threats rule categories
  • Microsoft Learn: DeviceNetworkEvents, DeviceProcessEvents, DeviceFileEvents schemas
  • rclone documentation (copy/sync, configuration file, user-agent)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.