Black Hat's Black Hat Asia 2026 | Graph-Aware LLM for Windows Logon with a Closed-Loop Guarded Detection Agent: skim's analysis identifies 11 key moments, with 1 potential conflict of interest flagged. JPCERT/CC CTO Shusei Tomonaga presents a framework that compresses massive Windows Event Logs into a user-host authentication graph and uses a guarded LLM agent to detect compromised accounts.
Category: Tech. Format: Educational. YouTube video analyzed by skim.
skim AI Analysis
Credibility assessment: Practitioner-Backed Research. Shusei Tomonaga presents empirical evaluation metrics, architectural specifics, and a live case study from over a decade of DFIR experience at JPCERT/CC. He candidly notes limitations, such as using Sigma rules as an imperfect ground truth and achieving 0.836 Jaccard reproducibility rather than full determinism.
Bias assessment: Pragmatic Engineering Focus. The presentation advocates for its own open-source LogonTracer tool and graph-plus-agent methodology, but maintains an objective engineering posture. Tomonaga explicitly warns against relying on raw LLMs or assuming larger models perform better, emphasizing strict guardrails and human analyst validation.
Originality: 86% — Novel Hybrid Architecture. Rather than feeding raw logs into an LLM prompt, the framework compresses Windows Event Logs into a Neo4j authentication graph scored by PageRank and Hidden Markov Models, then pairs it with a constrained, closed-loop query agent and automated Sigma rule generation.
Depth: 85% — Detailed Systems Breakdown. The talk walks systematically through token-cost math, event ID filtering, graph edge compression, centrality and sequence modeling, query template guardrails, benchmark metrics on a 20 GB dataset, and an 869 MB real-world incident response case study.
Key Points (11)
1. Tomonaga on Windows Log Noise in Incident Response
Timestamp: 00:00:09 to 00:02:11
Attackers frequently log in using stolen passwords, tickets, or hashes over normal Windows authentication paths, making malicious logons look like routine administrative activity. Because Active Directory environments generate millions of noisy events daily and Windows Event Logs were not built for compromise detection, blue teams struggle with too little signal rather than a lack of logs.
Significance (High): Frames the core operational bottleneck for blue teams: credential-based attacks blend into millions of daily Active Directory events, rendering manual review and simple signatures insufficient.
Sources in support: Shusei Tomonaga (CTO, JPCERT/CC)
2. Why Raw Logs Break Direct LLM Analysis at Scale
Timestamp: 00:03:39 to 00:06:41
Pasting raw logs into an LLM for summarization works only for small event counts and fails at enterprise scale where hundreds of thousands of events are present. Academic LLM log-analysis studies still leave two major operational gaps: handling massive Windows datasets in real time and producing stable, reproducible results for incident responders.
Significance (High): Explains why naive prompt-based log analysis fails in production DFIR and establishes scalability and reproducibility as the two mandatory design targets.
Sources in support: Shusei Tomonaga (CTO, JPCERT/CC)
3. Filtering Six Event IDs into a User-Host Graph
Timestamp: 00:06:50 to 00:10:25
Monitoring every Windows authentication event ID adds unnecessary noise, so the system filters raw logs down to six specific event IDs and essential fields like account, host, and timestamp. Each logon becomes a directed edge connecting an account and a host in a graph, which is then serialized into JSON context rather than bulky XML. This graph structure exposes multi-host account reach, supports centrality scoring, and collapses duplicate events.
Significance (Medium): Shows how selective field extraction and six core event IDs strip away log bloat before any graph math or LLM reasoning takes place.
Sources in support: Shusei Tomonaga (CTO, JPCERT/CC)
4. Tomonaga Quantifies 50-to-1 Graph Compression
Timestamp: 00:10:26 to 00:12:21
Aggregating repeated logons into unique user-host edges within time windows compresses a 50 MB raw log dataset down to roughly 1 MB. Feeding raw logs directly into an LLM can reach hundreds of millions of tokens, which at a 400,000-token context limit would require roughly 4,400 separate chunk requests and destroy global context. Graph compression avoids both prohibitive token costs and context fragmentation.
Significance (High): Quantifies the exact economic and architectural failure of raw-log prompting: 4,400 chunk requests not only cost too much, they sever cross-log relationships.
Sources in support: Shusei Tomonaga (CTO, JPCERT/CC)
5. PageRank Scores Lateral Movement Fanout Patterns
Timestamp: 00:12:24 to 00:15:26
Rather than asking the LLM to judge suspicion from raw graph structure alone, the pipeline computes mathematical features outside the model to guide its search and reduce random decisions. Applying the PageRank algorithm to the authentication graph highlights accounts that log into many hosts or hosts shared across many accounts. Because attackers reusing a single strong credential during lateral movement create a fanout pattern, PageRank quickly surfaces accounts with unusually wide reach.
Significance (High): Repurposes a classic web-ranking algorithm to spot credential fanout during lateral movement, giving the AI agent a deterministic starting priority.
Sources in support: Shusei Tomonaga (CTO, JPCERT/CC)
6. Hidden Markov Models Catch Skipped Logon Stages
Timestamp: 00:15:27 to 00:17:53
While PageRank captures spatial graph structure, attackers also leave temporal anomalies in their event sequences. By pairing PageRank with a Hidden Markov Model that tracks transitions across logon stages over time, the system detects when an attack such as Pass-the-Ticket skips an expected authentication stage. Combining structural centrality with sequence anomaly scores reduces false positives from legitimate administrators.
Significance (High): Solves the classic false-positive problem of busy administrator accounts by checking whether their authentication sequence skipped normal Kerberos stages.
Sources in support: Shusei Tomonaga (CTO, JPCERT/CC)
7. Tomonaga's Closed-Loop Agent and Query Guardrails
Timestamp: 00:17:54 to 00:22:52
The AI agent operates in an iterative loop: it forms a hypothesis from the highest-ranked suspicious accounts, generates a database query, evaluates the returned evidence, and decides whether to expand the investigation. Because free-form LLM analysis produces failed queries and unsupported conclusions, the system enforces strict guardrails including restricted query templates, predefined fields, and fixed JSON output schemas.
Significance (High): Replaces open-ended LLM speculation with a constrained hypothesis-query-evidence loop that forces every finding to cite verifiable database records.
Sources in support: Shusei Tomonaga (CTO, JPCERT/CC)
8. Iterative Evidence Evaluation and Reporting
Timestamp: 00:22:53 to 00:24:53
After executing each query, the agent evaluates event counts, targeted hosts, and user values, recording its decision in JSON before choosing the next focus. If initial evidence is weak, the agent pivots to alternative attack patterns or widens the search scope until sufficient proof is gathered to stop the loop. Once finished, it compiles an incident response report containing a summary, risk assessment, supporting evidence, and recommended next actions.
Significance (Medium): Demonstrates how autonomous multi-step pivoting turns raw database hits into a structured, actionable triage report for human responders.
Sources in support: Shusei Tomonaga (CTO, JPCERT/CC)
9. Benchmarking Accuracy and Reproducibility on 20 GB
Timestamp: 00:24:54 to 00:28:47
Tested against a 20 GB JSON dataset using Sigma rule detections as a baseline ground truth, the agent achieved a precision of 0.9 and a recall of 0.97. Across repeated runs on identical logs, the agent achieved an average Jaccard index of 0.836, showing that while the LLM workflow is not 100% deterministic, it reliably identifies almost the same set of compromised accounts.
Significance (High): Provides concrete benchmark numbers on a 20 GB dataset, proving high recall alongside a realistic measurement of LLM run-to-run consistency.
Sources in support: Shusei Tomonaga (CTO, JPCERT/CC)
10. Tomonaga Demos 195-Second Analysis of Real Intrusion
Timestamp: 00:28:48 to 00:35:25
In a real incident case study linked to the UNC6521 cluster across multiple Active Directory domains, the system analyzed 869 MB of logs containing over 100,000 events in 195 seconds using GPT-5 mini. The agent queried Event ID 4624, detected lateral movement and abnormal Kerberos activity at steps four and five, and confirmed the threat from multiple angles before stopping at step eight.
Significance (High): Validates the framework on a real multi-domain intrusion, shrinking 869 MB of logs into lateral movement findings in just over three minutes.
Sources in support: Shusei Tomonaga (CTO, JPCERT/CC)
11. Drafting Reusable Sigma Rules and Guardrail Lessons
Timestamp: 00:35:26 to 00:40:14
To turn incident findings into recurrence prevention, the framework prompts an LLM with sample YAML structures, valid log field names, and confirmed investigation evidence to draft simple, reviewable Sigma detection rules. Released as an open-source tool on GitHub, the project demonstrates that graph compression and strict guardrails matter far more than using larger LLM models, which often generate overly complex and unhelpful analysis.
Significance (Medium): Closes the operational loop by turning confirmed attacks into portable Sigma rules while cautioning defenders that guardrails beat raw model size.
Sources in support: Shusei Tomonaga (CTO, JPCERT/CC)
This analysis was generated by skim (skim.plus), an AI-powered content analysis platform by Credible AI. Scores and classifications represent the platform's AI-generated assessment and should be considered alongside other sources.