Real-time pattern-based multi-step attack detection using a sliding time window and 7 correlation patterns.
The EventCorrelator implements real-time, pattern-based multi-step attack detection. Rather than evaluating events in isolation, it maintains a sliding window buffer and applies 7 pattern detectors to identify attack chains that span multiple events.
The correlator runs inside the DetectAgent and produces CorrelationPattern objects that boost the confidence score in the AnalyzeAgent.
Sliding Window Buffer
Parameter
Value
Maximum events
1,000
Time window
5 minutes
Eviction policy
Events older than 5 minutes are discarded
Grouping
Events are grouped by source IP for pattern matching
7 Correlation Patterns
1. Brute Force Detection
Field
Value
MITRE ATT&CK
T1110
Detection logic
Authentication failures from the same source IP
Window
60 seconds
Threshold
5 events
Confidence
60 base + 8 per additional event (max 100)
Example
15 failed SSH login attempts from 203.0.113.50 in 30 seconds
2. Port Scan Detection
Field
Value
MITRE ATT&CK
T1046
Detection logic
Connections to distinct destination ports from the same IP
Window
60 seconds
Threshold
10 distinct ports
Confidence
65 base + 3 per additional port (max 100)
Example
Single IP probing ports 22, 80, 443, 3306, 5432, 6379, 8080, 8443, 9200, 27017
3. Lateral Movement
Field
Value
MITRE ATT&CK
T1021
Detection logic
Connections to distinct internal (RFC 1918) IP addresses
Window
5 minutes
Threshold
3 distinct internal IPs
Confidence
55 base + 10 per additional IP (max 100)
Example
Compromised host connecting to 192.168.1.10, 192.168.1.20, 192.168.1.30
4. Data Exfiltration
Field
Value
MITRE ATT&CK
T1041
Detection logic
Large outbound data transfer to an external IP
Window
Single event evaluation
Threshold
10 MB
Confidence
50 base + 15 per additional 10 MB (max 100)
Example
45 MB upload to an external IP via curl
5. Backdoor Installation
Field
Value
MITRE ATT&CK
T1059
Detection logic
Combination of file write + process creation + outbound network connection
Window
5 minutes
Threshold
All 3 event types present
Confidence
55 base, increases with additional correlated events (max 100)
Example
File written to /tmp/payload, new process spawned, outbound connection to C2 server
6. Privilege Escalation
Field
Value
MITRE ATT&CK
T1548
Detection logic
setuid/setgid/sudo/pkexec events
Window
5 minutes
Threshold
1 or more events
Confidence
50 base + 15 per additional event (max 100)
Example
Multiple sudo invocations followed by setuid system call
7. Severity Escalation
Field
Value
MITRE ATT&CK
— (compound pattern)
Detection logic
Accumulation of low or medium severity events from the same source
Window
5 minutes
Threshold
3 events at the same severity level
Confidence
40 base + 10 per additional event (max 100)
Promotion rules
3+ low events promote to medium; 3+ medium events promote to high
Correlation Result
When a pattern matches, the correlator produces a CorrelationResult containing:
interface CorrelationResult { pattern: string; // e.g., "brute_force" mitreId: string; // e.g., "T1110" confidence: number; // 0-100 relatedEvents: string[]; // event IDs in the chain sourceIp: string; // common source IP description: string; // human-readable summary}
The AnalyzeAgent applies a correlation boost of +5 per correlated event, up to a maximum of +25 added to the final confidence score.
The correlation engine operates in memory. Restarting the Guard engine clears the sliding window
buffer. Persistent cross-session correlation is available when a Manager server is connected.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Panguard AI - Security for AI Agents","colors":{"primary":"#8B9A8E","light":"#A8B5AB","dark":"#6B7A6E"},"logo":{"light":"https://mintcdn.com/panguard/UniZ1Xwe3Fr8_984/logo/panguard-light.svg?fit=max\u0026auto=format\u0026n=UniZ1Xwe3Fr8_984\u0026q=85\u0026s=c5f61b1098916ce1ad692b1848b3e8df","dark":"https://mintcdn.com/panguard/UniZ1Xwe3Fr8_984/logo/panguard-dark.svg?fit=max\u0026auto=format\u0026n=UniZ1Xwe3Fr8_984\u0026q=85\u0026s=f590001dad02abdb9f79289152a04805"},"favicon":"https://mintcdn.com/panguard/UniZ1Xwe3Fr8_984/favicon.svg?fit=max\u0026auto=format\u0026n=UniZ1Xwe3Fr8_984\u0026q=85\u0026s=68708c51aa4909a2f3390c2faa25519a","background":{"color":{"light":"#F5F1E8","dark":"#1A1614"}},"navbar":{"links":[{"href":"https://panguard.ai","label":"Website"}],"primary":{"type":"button","label":"Star on GitHub","href":"https://github.com/panguard-ai/panguard-ai"}},"footer":{"socials":{"github":"https://github.com/panguard-ai/panguard-ai"}},"search":{"prompt":"Search Panguard docs..."},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/panguard-ai/panguard-ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"panguard","hasAudioNarration":false,"actualSubdomain":"panguard","customDomains":["docs.panguard.ai"],"gitSource":{"type":"github","owner":"panguard-ai","repo":"panguard-ai","deployBranch":"main","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":"","_id":"6b10d89b9ffae5051c40e22a"},"entitlements":{},"buildId":"6aefc51a35650c57549f9cfe","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Documentation","count":27},{"language":"default","tag":"繁體中文","count":27},{"language":"default","tag":"Products","count":16},{"language":"default","tag":"CLI Reference","count":11},{"language":"default","tag":"Guides","count":9},{"language":"default","tag":"操作指南","count":9},{"language":"default","tag":"Getting Started","count":8},{"language":"default","tag":"開始使用","count":8},{"language":"default","tag":"API Reference","count":6},{"language":"default","tag":"System","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"products/guard/event-correlation","slug":"/products/guard/event-correlation","pageMetadata":{"title":"Event Correlation","description":"Real-time pattern-based multi-step attack detection using a sliding time window and 7 correlation patterns.","icon":"diagram-project","href":"/products/guard/event-correlation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Real-time pattern-based multi-step attack detection using a sliding time window and 7 correlation patterns.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`EventCorrelator`}),` implements real-time, pattern-based multi-step attack detection. Rather than evaluating events in isolation, it maintains a sliding window buffer and applies 7 pattern detectors to identify attack chains that span multiple events.`]}),`\n`,_jsx(Heading,{level:`2`,id:`architecture`,children:`Architecture`}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Events ──> [Sliding Window Buffer] ──> [Pattern Detectors] ──> CorrelationResult`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Max 1000 events 7 patterns`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 5-minute window`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`The correlator runs inside the `,_jsx(_components.code,{children:`DetectAgent`}),` and produces `,_jsx(_components.code,{children:`CorrelationPattern`}),` objects that boost the confidence score in the `,_jsx(_components.code,{children:`AnalyzeAgent`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`sliding-window-buffer`,children:`Sliding Window Buffer`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Maximum events`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1,000`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Time window`}),_jsx(_components.td,{children:`5 minutes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Eviction policy`}),_jsx(_components.td,{children:`Events older than 5 minutes are discarded`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Grouping`}),_jsx(_components.td,{children:`Events are grouped by source IP for pattern matching`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`7-correlation-patterns`,children:`7 Correlation Patterns`}),`\n`,_jsx(Heading,{level:`3`,id:`1-brute-force-detection`,children:`1. Brute Force Detection`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`MITRE ATT\u0026CK`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`T1110`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Detection logic`})}),_jsx(_components.td,{children:`Authentication failures from the same source IP`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Window`})}),_jsx(_components.td,{children:`60 seconds`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Threshold`})}),_jsx(_components.td,{children:`5 events`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Confidence`})}),_jsx(_components.td,{children:`60 base + 8 per additional event (max 100)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Example`})}),_jsx(_components.td,{children:`15 failed SSH login attempts from 203.0.113.50 in 30 seconds`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`2-port-scan-detection`,children:`2. Port Scan Detection`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`MITRE ATT\u0026CK`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`T1046`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Detection logic`})}),_jsx(_components.td,{children:`Connections to distinct destination ports from the same IP`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Window`})}),_jsx(_components.td,{children:`60 seconds`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Threshold`})}),_jsx(_components.td,{children:`10 distinct ports`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Confidence`})}),_jsx(_components.td,{children:`65 base + 3 per additional port (max 100)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Example`})}),_jsx(_components.td,{children:`Single IP probing ports 22, 80, 443, 3306, 5432, 6379, 8080, 8443, 9200, 27017`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`3-lateral-movement`,children:`3. Lateral Movement`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`MITRE ATT\u0026CK`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`T1021`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Detection logic`})}),_jsx(_components.td,{children:`Connections to distinct internal (RFC 1918) IP addresses`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Window`})}),_jsx(_components.td,{children:`5 minutes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Threshold`})}),_jsx(_components.td,{children:`3 distinct internal IPs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Confidence`})}),_jsx(_components.td,{children:`55 base + 10 per additional IP (max 100)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Example`})}),_jsx(_components.td,{children:`Compromised host connecting to 192.168.1.10, 192.168.1.20, 192.168.1.30`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`4-data-exfiltration`,children:`4. Data Exfiltration`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`MITRE ATT\u0026CK`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`T1041`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Detection logic`})}),_jsx(_components.td,{children:`Large outbound data transfer to an external IP`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Window`})}),_jsx(_components.td,{children:`Single event evaluation`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Threshold`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`10 MB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Confidence`})}),_jsx(_components.td,{children:`50 base + 15 per additional 10 MB (max 100)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Example`})}),_jsx(_components.td,{children:`45 MB upload to an external IP via curl`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`5-backdoor-installation`,children:`5. Backdoor Installation`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`MITRE ATT\u0026CK`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`T1059`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Detection logic`})}),_jsx(_components.td,{children:`Combination of file write + process creation + outbound network connection`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Window`})}),_jsx(_components.td,{children:`5 minutes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Threshold`})}),_jsx(_components.td,{children:`All 3 event types present`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Confidence`})}),_jsx(_components.td,{children:`55 base, increases with additional correlated events (max 100)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Example`})}),_jsxs(_components.td,{children:[`File written to `,_jsx(_components.code,{children:`/tmp/payload`}),`, new process spawned, outbound connection to C2 server`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`6-privilege-escalation`,children:`6. Privilege Escalation`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`MITRE ATT\u0026CK`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`T1548`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Detection logic`})}),_jsx(_components.td,{children:`setuid/setgid/sudo/pkexec events`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Window`})}),_jsx(_components.td,{children:`5 minutes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Threshold`})}),_jsx(_components.td,{children:`1 or more events`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Confidence`})}),_jsx(_components.td,{children:`50 base + 15 per additional event (max 100)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Example`})}),_jsxs(_components.td,{children:[`Multiple `,_jsx(_components.code,{children:`sudo`}),` invocations followed by `,_jsx(_components.code,{children:`setuid`}),` system call`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`7-severity-escalation`,children:`7. Severity Escalation`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`MITRE ATT\u0026CK`})}),_jsx(_components.td,{children:`— (compound pattern)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Detection logic`})}),_jsx(_components.td,{children:`Accumulation of low or medium severity events from the same source`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Window`})}),_jsx(_components.td,{children:`5 minutes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Threshold`})}),_jsx(_components.td,{children:`3 events at the same severity level`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Confidence`})}),_jsx(_components.td,{children:`40 base + 10 per additional event (max 100)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Promotion rules`})}),_jsx(_components.td,{children:`3+ low events promote to medium; 3+ medium events promote to high`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`correlation-result`,children:`Correlation Result`}),`\n`,_jsxs(_components.p,{children:[`When a pattern matches, the correlator produces a `,_jsx(_components.code,{children:`CorrelationResult`}),` containing:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` CorrelationResult`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` pattern`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// e.g., \"brute_force\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` mitreId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// e.g., \"T1110\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` confidence`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 0-100`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` relatedEvents`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[]; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// event IDs in the chain`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` sourceIp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// common source IP`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` description`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// human-readable summary`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`AnalyzeAgent`}),` applies a correlation boost of +5 per correlated event, up to a maximum of +25 added to the final confidence score.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The correlation engine operates in memory. Restarting the Guard engine clears the sliding window\nbuffer. Persistent cross-session correlation is available when a Manager server is connected.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Event Correlation","description":"Real-time pattern-based multi-step attack detection using a sliding time window and 7 correlation patterns.","icon":"diagram-project","href":"/products/guard/event-correlation"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Architecture","slug":"architecture","depth":2,"children":[]},{"title":"Sliding Window Buffer","slug":"sliding-window-buffer","depth":2,"children":[]},{"title":"7 Correlation Patterns","slug":"7-correlation-patterns","depth":2,"children":[{"title":"1. Brute Force Detection","slug":"1-brute-force-detection","depth":3,"children":[]},{"title":"2. Port Scan Detection","slug":"2-port-scan-detection","depth":3,"children":[]},{"title":"3. Lateral Movement","slug":"3-lateral-movement","depth":3,"children":[]},{"title":"4. Data Exfiltration","slug":"4-data-exfiltration","depth":3,"children":[]},{"title":"5. Backdoor Installation","slug":"5-backdoor-installation","depth":3,"children":[]},{"title":"6. Privilege Escalation","slug":"6-privilege-escalation","depth":3,"children":[]},{"title":"7. Severity Escalation","slug":"7-severity-escalation","depth":3,"children":[]}]},{"title":"Correlation Result","slug":"correlation-result","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"panguard","siteName":"Panguard AI - Security for AI Agents","title":"Event Correlation - Panguard AI - Security for AI Agents","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-26T16:33:27.774Z","originalFileLocation":"products/guard/event-correlation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Real-time pattern-based multi-step attack detection using a sliding time window and 7 correlation patterns.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Panguard AI - Security for AI Agents\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/panguard/epBpVNV-BzKci3EZ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/panguard/epBpVNV-BzKci3EZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/panguard/epBpVNV-BzKci3EZ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/panguard/epBpVNV-BzKci3EZ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/panguard/epBpVNV-BzKci3EZ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/panguard/epBpVNV-BzKci3EZ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/panguard/epBpVNV-BzKci3EZ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/panguard/epBpVNV-BzKci3EZ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/panguard/epBpVNV-BzKci3EZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Event Correlation - Panguard AI - Security for AI Agents\">\u003cmeta data-mint-head property=\"og:description\" content=\"Real-time pattern-based multi-step attack detection using a sliding time window and 7 correlation patterns.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Panguard AI - Security for AI Agents\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.panguard.ai/products/guard/event-correlation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://panguard.mintlify.site/_mintlify/api/og/v2?division=Panguard+Guard\u0026amp;title=Event+Correlation\u0026amp;description=Real-time+pattern-based+multi-step+attack+detection+using+a+sliding+time+window+and+7+correlation+patterns.\u0026amp;theme=74360ebf6ecde3659a420a2d\u0026amp;signature=f666509c45741551b7b408b528fb82c0a09de5b0db85fbfbc7d39e03175ef7ee\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Event Correlation - Panguard AI - Security for AI Agents\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Real-time pattern-based multi-step attack detection using a sliding time window and 7 correlation patterns.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://panguard.mintlify.site/_mintlify/api/og/v2?division=Panguard+Guard\u0026amp;title=Event+Correlation\u0026amp;description=Real-time+pattern-based+multi-step+attack+detection+using+a+sliding+time+window+and+7+correlation+patterns.\u0026amp;theme=74360ebf6ecde3659a420a2d\u0026amp;signature=f666509c45741551b7b408b528fb82c0a09de5b0db85fbfbc7d39e03175ef7ee\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/panguard/epBpVNV-BzKci3EZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Panguard AI - Security for AI Agents\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8B9A8E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.panguard.ai/products/guard/event-correlation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/products/guard/event-correlation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.panguard.ai/#organization\",\"name\":\"Panguard AI - Security for AI Agents\",\"url\":\"https://docs.panguard.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/panguard/UniZ1Xwe3Fr8_984/logo/panguard-light.svg?fit=max\u0026auto=format\u0026n=UniZ1Xwe3Fr8_984\u0026q=85\u0026s=c5f61b1098916ce1ad692b1848b3e8df\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.panguard.ai#website\",\"name\":\"Panguard AI - Security for AI Agents\",\"url\":\"https://docs.panguard.ai\",\"publisher\":{\"@id\":\"https://docs.panguard.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.panguard.ai/products/guard/event-correlation#webpage\",\"url\":\"https://docs.panguard.ai/products/guard/event-correlation\",\"name\":\"Event Correlation\",\"description\":\"Real-time pattern-based multi-step attack detection using a sliding time window and 7 correlation patterns.\",\"dateModified\":\"2026-03-26T16:33:27.774Z\",\"isPartOf\":{\"@id\":\"https://docs.panguard.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.panguard.ai/products/guard/event-correlation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.panguard.ai/products/guard/event-correlation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Panguard Guard\",\"item\":\"https://docs.panguard.ai/products/guard/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Event Correlation\",\"item\":\"https://docs.panguard.ai/products/guard/event-correlation\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.panguard.ai/products/guard/event-correlation#article\",\"headline\":\"Event Correlation\",\"name\":\"Event Correlation\",\"description\":\"Real-time pattern-based multi-step attack detection using a sliding time window and 7 correlation patterns.\",\"url\":\"https://docs.panguard.ai/products/guard/event-correlation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.panguard.ai/products/guard/event-correlation#webpage\"},\"dateModified\":\"2026-03-26T16:33:27.774Z\",\"publisher\":{\"@id\":\"https://docs.panguard.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.panguard.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Panguard AI - Security for AI Agents\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Panguard AI - Security for AI Agents\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/products/guard/event-correlation.md","siteName":"Panguard AI - Security for AI Agents","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/panguard-ai/panguard-ai"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Products","groups":[{"group":"Products","pages":[{"title":"Product Suite Overview","icon":"boxes-stacked","href":"/products/overview"}]},{"group":"Panguard Scan","pages":[{"title":"Panguard Scan","icon":"magnifying-glass","href":"/products/scan/overview"},{"title":"Scanner Types","icon":"list-check","href":"/products/scan/scanners"},{"title":"Risk Scoring","icon":"chart-bar","href":"/products/scan/risk-scoring"},{"title":"PDF Reports","icon":"file-pdf","href":"/products/scan/pdf-reports"}]},{"group":"Panguard Guard","pages":[{"title":"Panguard Guard","icon":"shield","href":"/products/guard/overview"},{"title":"Agent Pipeline (DARE)","icon":"arrow-right-arrow-left","href":"/products/guard/agent-pipeline"},{"title":"Monitor Types","description":"Reference for all 10 monitor types: 4 built-in and 6 advanced monitors with their capabilities and dependencies.","icon":"eye","href":"/products/guard/monitors"},{"title":"Event Correlation","icon":"diagram-project","href":"/products/guard/event-correlation"},{"title":"Auto-Response","description":"Automated threat response modules, safety rules, escalation ladder, and rollback support.","icon":"bolt","href":"/products/guard/auto-response"}]},{"group":"Panguard MCP","pages":[{"title":"Panguard MCP Server","icon":"plug","href":"/products/mcp/overview"},{"title":"MCP Tools Reference","icon":"wrench","href":"/products/mcp/tools-reference"}]},{"group":"Threat Cloud","pages":[{"title":"Threat Cloud","icon":"cloud","href":"/products/threat-cloud/overview"},{"title":"Connecting to Threat Cloud","icon":"plug","href":"/products/threat-cloud/deployment"},{"title":"Privacy","icon":"shield-check","href":"/products/threat-cloud/privacy"}]}]},{"tab":"CLI Reference","pages":[{"title":"CLI Reference","href":"/cli/overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"繁體中文","pages":[{"title":"繁體中文","href":"/zh-Hant/introduction"}]}]},"basePath":"","title":"Event Correlation - Panguard AI - Security for AI Agents","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":[],"chunks":[]}