← All resources
SIEM

How to detect a red team or external penetration test with your SIEM

A red team or external penetration test is the cheapest real attack you will ever face. If your SIEM stays quiet while the testers work, you have learned something important, and it is fixable.

SIEM · 5 min read · By SafeToOpen Research · July 2026

Penetration tests usually end with a list of vulnerabilities. Far fewer end with a question that matters just as much: what did our SIEM see? Testers use the same tools and techniques as real intruders, often in the same order. Detecting them is a rehearsal for detecting an attacker, and every stage they get through unnoticed is one a criminal would get through too.

Speed matters. Mandiant found that in 2025 the median time between initial access and the hand-off to a second threat group fell to 22 seconds, and exploits remained the most common way in, at 32% of intrusions. [1] You won’t catch that in a weekly report review. You need detections that fire while it happens.

Agree the rules of engagement first

Decide up front whether the SOC knows the test is happening. A blind test measures real detection and response. An announced test lets you tune rules live alongside the testers. Either way, agree how you will tell testers from a real attacker, such as known source addresses, a code word or a contact who can confirm, so a genuine intrusion during the test window isn’t written off as “probably the pentesters”.

External scanning and exploitation

An external test starts with reconnaissance: port and host sweeps, then vulnerability scanners, then attempts to exploit what they find. [2]

Active Directory reconnaissance and credential tooling

Once inside, most tests head straight for Active Directory. The tools are well known, and so are their traces in process-creation logs (Sysmon event 1, or Windows 4688 with command-line logging) and PowerShell script-block logs (4104). [3]

Kerberoasting and DCSync

Two credential-access techniques deserve their own rules because they are so common in tests and real intrusions alike.

Kerberoasting requests service tickets for accounts with a service principal name, then cracks them offline. [5] On domain controllers, look for event 4769 with ticket encryption type 0x17 (RC4) for services other than krbtgt, especially many in a short time from one account. This needs “Audit Kerberos Service Ticket Operations” switched on. [6]

DCSync abuses directory replication to pull password hashes from a domain controller without touching its disk. [7] Look for event 4662 carrying the directory replication rights GUIDs, from an account or host that is not a domain controller.

Together they tell a story: roasting, then the cracked account signing in to new hosts (4624 logon type 3, or 4648 explicit credentials), then replication. Any two of those for the same account within a day is an incident.

Remote execution with Impacket

Impacket’s psexec, smbexec, wmiexec and dcomexec scripts are staples of internal tests, and they leave consistent traces. [8]

StageWhere to lookWhat it looks like
Service creationSystem event 7045, Security event 4697A new service whose path points at %COMSPEC% or ADMIN$, or carries an inline cmd command
Tool dropped on an admin shareSecurity event 5145 (detailed file share)Executables, batch files or __output files written to ADMIN$ or C$
Remote-execution shellSysmon event 1, Security event 4688wmiprvse, mmc, dllhost or services starting cmd.exe or powershell.exe

Command-and-control beacons

Red teams usually run a C2 framework such as Cobalt Strike, Sliver or Metasploit. Watch for it from both ends:

Mature red teams change the defaults, so treat these as the floor, not the ceiling. Beaconing analysis, which looks for regular intervals and small, consistent payloads, still works when names change.

Red-team attack stories, ready to deploy

LogLens includes correlation rules for external scanning and exploitation, Active Directory recon and credential tooling, Impacket remote execution and C2 beacons. It shows which stages your logs can already see, and which source would complete each one.

See LogLens attack stories →

Check your logs can see it, before the test

Most “the SIEM saw nothing” results come down to missing telemetry, not missing rules. Before the test, confirm that:

After the test: turn the report into detections

Ask the testers for their timeline: every action, with the time, source and target. Line it up against your SIEM’s alerts and logs, and mark each step as alerted, logged but not alerted, or not logged. The “logged but not alerted” steps are your fastest wins: the data is there and only the rule is missing. The “not logged” steps become your next onboarding or audit-policy change. Then test again. A penetration test that improves your detections is worth far more than one that only produces a list of patches.

Frequently asked questions

Yes, if it collects the right logs and has rules for the techniques testers use: external scanning, Active Directory enumeration, password spraying, Kerberoasting, DCSync, Impacket remote execution and C2 beaconing. If it can’t see your testers, it is unlikely to see a real attacker using the same tools.

Common ones are 4625 and 4771 for failed logons and spraying, 4769 with RC4 encryption for Kerberoasting, 4662 with replication rights for DCSync, 7045 or 4697 for new services created by psexec-style tools, 5145 for admin share access, 4688 or Sysmon event 1 for process creation, and 4104 for PowerShell script blocks.

Enable Kerberos service ticket auditing on domain controllers and alert on event 4769 requests that use RC4 encryption (type 0x17) for services other than krbtgt, especially many in a short time from one account. Correlate with the same account signing in to new hosts afterwards.

It depends on what you want to measure. A blind test measures real detection and response, while an announced test lets you tune detections live. Either way, agree a way to confirm tester activity so a real intrusion is not dismissed as part of the test.

See your next pentest coming

LogLens adds red-team attack stories to your SIEM and shows which stages your logs can see today, so the next test ends with alerts, not just a report.

Explore LogLens →

Sources

  1. Mandiant M-Trends 2026: median dwell time 14 days, exploits 32% of intrusions, 22-second hand-off, 52% detected internally cloud.google.com
  2. MITRE ATT&CK T1595: Active Scanning attack.mitre.org
  3. Microsoft Sysinternals: Sysmon, process, network, named-pipe and injection events learn.microsoft.com
  4. MITRE ATT&CK T1110.003: Password Spraying attack.mitre.org
  5. MITRE ATT&CK T1558.003: Kerberoasting attack.mitre.org
  6. Microsoft Learn: event 4769, a Kerberos service ticket was requested learn.microsoft.com
  7. MITRE ATT&CK T1003.006: DCSync attack.mitre.org
  8. MITRE ATT&CK T1569.002: Service Execution attack.mitre.org

External statistics are attributed to their original publishers and were accurate at the time of writing. Figures from industry reports vary by methodology and period; we link to primary sources so you can verify them.