Explore/

Detection Engineering

7 public captures

Detection-tagged captures were uploaded as test cases for a rule or a hunt. Open the Analysis tab to see which Suricata signatures fire, then compare that with what the packets actually contain. They are useful for checking false positives, tuning thresholds and understanding why a given signature matched.

Packet captures used to build and test network detections: Suricata and Zeek signatures, IDS tuning and true-positive examples.

trypcaphub·1mo ago3

PHP2Shell HTTP Detection Indicators

What you’ll see. A baseline HTTP GET. A multipart/form-data POST containing the PHP_SESSION_UPLOAD_PROGRESS field and a harmless text file. HTTP responses advertising PHP/8.2.34 in a header and a phpinfo-style version heading. Detection context. Corelight’s php2shell-detect Suricata rules 3000650–3000652 match the upload-progress and PHP-version indicators associated with CVE-2026-109618 and CVE-2026-109619. These are detection indicators—not evidence that either vulnerability was exploited. Scope and interpretation. The traffic was handled by an inert Python responder with fixed responses. No vulnerable PHP runtime or exploit payload was used; the trace does not demonstrate exploitation, memory corruption, or code execution. References. Corelight detection rules Corelight: PHP2Shell detection before disclosure PHP security advisory

6626.0 KB50
trypcaphub·7mo ago

learn: DNS Threat Hunting Challenge (Find the Malicious Queries)

A mixed DNS capture containing normal web browsing traffic with suspicious queries hidden in the noise. Your challenge: identify the malicious DNS activity using Wireshark filters and pattern recognition. Zeek identified 133 DNS transactions total. The capture contains: normal A record queries for popular websites (google.com, youtube.com, github.com, reddit.com, amazon.com, microsoft.com, stackoverflow.com, linkedin.com, slack.com, zoom.us, plus CDN domains like jsdelivr.net and cloudflare.com), a few legitimate TXT queries (_dmarc.google.com, github.com SPF), and hidden among them: DGA-generated domains, base64-encoded subdomain tunneling queries, and TXT record C2 beacon queries to an unusual domain. Hunting workflow: 1) Filter to dns and scan queried domain names. 2) Look for random-string domains that do not match normal patterns. 3) Filter dns.flags.rcode == 3 to find NXDOMAIN clusters. 4) Filter dns.qry.type == 16 to isolate TXT queries and check if the volume to any single domain is abnormal. 5) Check which DNS server each query targets. 6) Look for unusually long subdomain labels that may contain encoded data. How many suspicious indicators can you find?

76660 KB266
trypcaphub·7mo ago

learn: DNS Queries to Non-Standard Resolver (Rogue DNS Detection)

DNS queries split between two resolvers demonstrating how malware bypasses DNS monitoring. Queries to 10.99.0.21 (the legitimate BIND 9.18.39 internal resolver) resolve normal domains: google.com, github.com, microsoft.com, and internal pcaplab.local hostnames, all returning valid A records. Queries to 10.99.0.22 (a non-standard server not normally used for DNS) include suspicious lookups: evil-c2-server.com, malware-update.net, exfil-drop.org, botnet-controller.info, plus 10 DGA-style hex-encoded domain names like 48b66121b5087926.com and fa6b0b3f7288f67e.com. Most machines should only query your internal DNS server or known public resolvers (8.8.8.8, 1.1.1.1). In Wireshark, filter for DNS traffic going to unexpected destinations: dns && !(ip.dst == 10.99.0.21) (adjust for your environment). Any host sending DNS queries to an unknown IP address may be running malware with its own DNS infrastructure to avoid your monitoring.

3634.2 KB34
trypcaphub·7mo ago

learn: DNS TXT Record C2 Communication Pattern

55 DNS transactions against BIND 9.18.39 demonstrating command-and-control communication via TXT records. Three distinct phases are visible: Phase 1 - Beacon polling: 30 TXT queries to {session_id}.beacon.updates.pcaplab.local at 500ms intervals. Each uses a random hex session ID (e.g., ca13, f082, ba5e). This periodic polling is how malware checks for new commands. Phase 2 - Data exfiltration: 15 TXT queries encoding base64 data chunks in subdomains under data.updates.pcaplab.local. Each query carries a numbered chunk of stolen data. Phase 3 - Baseline comparison: 4 legitimate TXT queries (google.com, github.com, cloudflare.com, pcaplab.local) returning real SPF and verification records, plus 3 normal A record queries. TXT records can carry arbitrary text, making them ideal for C2 data transfer. In Wireshark, filter with dns.qry.type == 16 to isolate TXT queries. In normal browsing you should see very few TXT queries. A high count to a single domain at regular intervals is a strong C2 indicator.

34320 KB110
trypcaphub·7mo ago

learn: DNS Tunneling via Encoded Subdomain Labels

28 DNS queries against BIND 9.18.39 demonstrating data exfiltration through encoded subdomain names. 15 queries encode stolen data as base64 subdomain labels under exfil.pcaplab.local. The encoded payloads contain actual credentials and system information: dXNlcm5hbWU9YWRtaW5pc3RyYXRvcg decodes to username=administrator, cGFzc3dvcmQ9UzNjcmV0UEBzc3cwcmQh decodes to password=S3cretP@ssw0rd!, plus hostname, IP address, OS version, antivirus status, and installed software inventory. 10 TXT record queries to cmd.{n}.c2.pcaplab.local simulate C2 command retrieval. 3 normal A record queries (www.pcaplab.local, mail.pcaplab.local, google.com) provide baseline comparison. Normal subdomains are short: www, api, mail, cdn. DNS tunneling uses abnormally long subdomains (50+ characters) with base64-like character patterns. To detect this in Wireshark, look for DNS query names where the subdomain length is far longer than typical. The high entropy and consistent parent domain are the key indicators.

3649.5 KB56
trypcaphub·7mo ago3

learn: Domain Generation Algorithm (DGA) Detection

45 DNS queries against BIND 9.18.39 demonstrating Domain Generation Algorithm behavior. 40 queries use randomly generated alphanumeric domain names (e.g., aji0y6dpb.net, sahxthv3a3z.org) across .com, .net, .org, .info, and .biz TLDs. These DGA domains all return NXDOMAIN (rcode 3) since they do not exist. 5 queries for legitimate domains (google.com, github.com, cloudflare.com, amazon.com, microsoft.com) return valid A records for comparison. The contrast is the detection key: DGA domains are high-entropy random strings that consistently fail to resolve, while legitimate domains are readable words that resolve successfully. Suricata flagged "ET INFO Observed DNS Query to .biz TLD" for one of the DGA queries. Zeek identified 102 DNS transactions. To find DGA traffic in Wireshark, filter for NXDOMAIN responses: dns.flags.rcode == 3. A large cluster of NXDOMAINs for random-looking domain names is a strong indicator of DGA-based malware cycling through generated domains searching for an active C2 server.

78667 KB204
trypcaphub·7mo ago

DNS over HTTPS (DoH) Traffic Pattern Detection

17 TLS connections to 10.99.0.21:443 simulating DNS-over-HTTPS (DoH) traffic patterns. 15 connections send POST requests with Content-Type: application/dns-message headers at 500ms intervals, followed by 2 normal HTTPS requests for comparison. All traffic is TLS-encrypted, so the DoH-specific headers are not visible in the capture. However, the traffic pattern is distinguishable: short-lived TLS sessions at regular intervals with small payload sizes (typical of DNS query/response) versus longer sessions with larger payloads (normal web browsing). 10 TLS SNI entries are visible in the ClientHello messages. This demonstrates why DoH detection must rely on traffic analysis patterns rather than content inspection.

25475 KB323