Runtime Correlation

ByteHide AI connects what Code finds in your code with what App runtime sees in production. A vulnerability is not just "medium severity" — it's "medium severity, actively exploited, last attack 2 hours ago".


Why Runtime Context Matters

Static analysis tells you a vulnerability exists. Runtime correlation tells you if anyone is actually attacking it.

Without Runtime CorrelationWith Runtime Correlation
200 findings ordered by CVSS score200 findings ordered by real-world risk
All High findings look equally importantActively exploited findings go to the top
A Critical SSRF on an internal endpoint wastes your team's timeThat SSRF is deprioritized — no external traffic reaches it
No way to know if a vulnerable dependency is loaded in productionApp runtime confirms which apps are running the vulnerable code

How It Works

When both Code (SAST/SCA/Secrets) and App runtime (RASP) are active on the same project, they share data automatically through the ByteHide platform. No additional configuration is needed.

Escalation: theoretical to actively exploited

  1. Code flags a SQL injection in /api/users — assigns it Medium severity
  2. App runtime detects 47 SQL injection attempts targeting that exact endpoint this week

Monitor incidents dashboard showing detected threats — SQL Injection, Path Traversal, and Cross-Site Scripting attacks with severity levels, timestamps, and actions taken (Block, Log, Close)Click to expand

  1. Code receives the runtime signal and escalates the finding to Critical
  2. The finding shows a "Runtime Confirmed" indicator with a link to the Monitor incidents

De-escalation: flagged but unreachable

  1. Code flags an SSRF with Critical severity (CVSS 9.1)
  2. App runtime confirms the endpoint is internal-only, behind authentication, unreachable from external traffic
  3. Code adjusts the priority to Medium — your team stops wasting time on it

Attack detail and AI analysis

When App runtime detects an attack, it captures the full context: payload, injected content, SQL query, stacktrace, and origin. You get the exact data you need to understand the attack.

App runtime incident detail showing a SQL Injection attack — 90% confidence, Critical severity, with the actual payload (' OR '1'='1), the injected SQL query, and the stacktrace pointing to VulnerableUserController.Login()Click to expand

App runtime also provides an AI-powered analysis that explains what happened, why it matters, the attack vector, and the severity — all in plain language.

AI Security Analysis of the SQL Injection incident — explains the attack pattern, business impact (data breach, authentication bypass, compliance violations), and confirms high confidence levelClick to expand


MCP: Runtime Context in Your AI Conversation

When you use ByteHide through MCP, runtime correlation enriches the responses your AI agent gives you. Instead of just reporting a static finding, the AI can tell you:

  • "This dependency has a known vulnerability and it's running in your production environment"
  • "The last attack targeting this endpoint was today at 11:00"
  • "This vulnerability is actively being exploited — 47 attempts this week"
  • "App runtime is currently blocking attacks against this while you prepare the fix"

This turns security conversations from theoretical ("this could be vulnerable") into actionable ("this is under attack right now, here's what to do").

Example: dependency check with runtime context

When you ask your AI agent to check a dependency, the MCP doesn't just report the CVE — it cross-references with App runtime to tell you if that vulnerable dependency is loaded in a running application:

CODE
You: Is express@4.17.1 safe?

Claude: express@4.17.1 has 3 known CVEs (1 Critical, 2 High).

        ⚠️ Runtime alert: This exact version is currently running in
        your "api-gateway" production environment. Monitor detected
        2 exploit attempts targeting CVE-2024-43796 in the last 24h.

        Recommended: upgrade to express@4.21.0

Example: code scan with runtime enrichment

When you scan code for vulnerabilities, findings that match active attacks in App runtime get flagged immediately:

CODE
You: Scan this file for vulnerabilities

Claude: Found 3 vulnerabilities:

        🔴 SQL Injection (CWE-89) — line 47 [RUNTIME CONFIRMED]
           47 exploit attempts this week targeting /api/users
           Monitor is blocking attacks. Fix urgently.

        🟡 XSS (CWE-79) — line 112
           No runtime activity observed

        🟡 Path Traversal (CWE-22) — line 89
           Endpoint is internal-only (Monitor confirms unreachable)

The AI agent prioritizes the SQL injection first because it's the one under active attack — not because it has the highest CVSS score.


AI-Assisted Security During Development

Runtime correlation is not only for triage. When your AI coding agent has access to ByteHide MCP, security becomes part of the development conversation in real time:

  • While writing code — the AI can scan what you're writing for vulnerabilities before you even commit
  • Before installing dependencies — check if a package is safe and whether similar vulnerable versions are already running in production
  • During code review — the AI can audit the diff for security issues and flag anything that matches known attack patterns from App runtime
  • When debugging — if App runtime detected an attack, the AI can explain the incident, show you the vulnerable code, and suggest the fix

The MCP tools are available throughout the conversation. You don't switch to a separate security tool — the AI proactively uses ByteHide as part of its workflow.


Impact on Prioritization

Without runtime correlation, priority is based on severity score alone:

FindingCVSSPriority
SQL Injection in /api/users8.6High
XSS in /admin/reports6.1Medium
Path Traversal in /api/files7.5High
SSRF in /internal/webhook9.1Critical

With runtime correlation from App runtime:

FindingCVSSRuntime SignalAdjusted Priority
SQL Injection in /api/users8.647 exploit attempts this weekCritical (actively exploited)
XSS in /admin/reports6.1No attempts observedMedium (unchanged)
Path Traversal in /api/files7.5Endpoint is internal onlyLow (unreachable)
SSRF in /internal/webhook9.1Endpoint is internal onlyMedium (deprioritized)

The SSRF had the highest CVSS score, but runtime data shows it's unreachable. The SQL injection had a lower score, but it's actively under attack. Runtime correlation ensures your team fixes the right thing first.


False Positive Reduction

Runtime correlation reduces false positives by up to 90% through three mechanisms:

MechanismHow It Works
Reachability confirmationApp runtime observes actual traffic and confirms which code paths are reachable. Findings in unreachable code are deprioritized
Exploit validationWhen App runtime detects a real attack matching a Code finding, the finding is confirmed as a true positive
Context enrichmentApp runtime provides deployment context (internal vs. external, authentication, network segmentation) that eliminates findings that are valid in code but not exploitable in context

Setup

Runtime correlation activates automatically when both products are connected:

  1. Create a Code project and connect your repository
  2. Set up App runtime on the same application
  3. Both products share data through the ByteHide platform automatically

No additional configuration is needed. When App runtime detects an attack that matches a Code finding, the correlation appears in both dashboards within seconds — and becomes available to your AI agent through MCP.


Next Steps

MCP Setup

Connect ByteHide MCP to your AI agent to get runtime-enriched security insights.

MCP Overview

All MCP tools available and how they work.

Code Runtime Correlation

In-depth technical reference for Code + App runtime correlation.

Previous
Code