Skip to content

The researchers propose a log-substrate prompt injection attack that can suppress malicious log identification by LLM analysis assistants in SOCsPoisoning the Watchtower: Prompt Injection Attacks Against LLM-Augmented Security Operations Through Adversarial Log Content

Paper Tracker· arXiv:2605.24421· Rohan Pandey, Archit Bhujang·Indexed by this site · 2026-10-08· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors used gpt-4o-mini to test log-substrate prompt injection: the S1 suppression rate for classification is 0%, and the naive ISR for S3 in summarization is 96%.

Threat modelA remote attacker can send traffic to a publicly reachable service of the defender, without credentials, without internal network access, and cannot modify the log pipeline after ingestion. They know that an LLM is used downstream, but not the exact prompt template. The goal is to manipulate classification, summary, or remediation recommendations so that malicious events appear harmless or require no action. It is not assumed that the LLM can execute commands, call tools, or change the SIEM. The victim system is an LLM analyst querying the SIEM.

Questions
The SOC's LLM analyst places logs into context for classification, summarization, or disposition recommendations. The user agent, URL, payload, DNS queries, and attempted usernames can be written by the attacker, so the evidence stream can also carry instructions. The authors call this log-substrate prompt injection.
Methods
The four injection types are direct override S1, persona hijacking S2, context manipulation S3, and obfuscated payload S4, appended to a randomly selected attacker-controllable field. gpt-4o-mini at temperature 0 performs classification, summary, and remediation recommendation, comparing naive, structured prompts, field sanitization, and constrained output.
Experiments and results
48 conditions, 200 logs per condition, 120 of which are malicious. For classification, S1 suppression rate is 0% in all cases, and naive S2 is 68%. For summary, S3 ISR is 96% under naive and 38% under constrained. The authors state that average ISR drops from 26.6% to 11.8%.
Limitations and future work
The authors point out that they evaluated only a single point in time for gpt-4o-mini, the synthetic logs do not contain production traffic, and they did not study multi-turn attacks or agents that can call tools. The experiment covers four injection types, three tasks, and four defenses, with 120 malicious samples per condition; the paper does not report the benign false positive rate, nor does it state who judged the summaries.
Experimental setupgpt-4o-mini · 程序合成SOC日志(schema参照CIC-IDS2017与UNSW-NB15) · ISR、SR et al.
Evaluated models
gpt-4o-mini
Benchmarks
程序合成SOC日志(schema参照CIC-IDS2017与UNSW-NB15)
Metrics
ISRSRURR
AI summaryThe researchers propose the attack setting of log-substrate prompt injection: in a security operations center (SOC), an LLM analysis assistant reads logs and alert data to generate classification labels, event summaries, or remediation suggestions, while log fields such as user agent, URL, payload, DNS query, and attempted username are controlled by the attacker and can carry embedded instructions. The authors divide attacks into four categories: direct override (S1), persona hijacking (S2), context manipulation (S3), and obfuscated payloads (S4), and evaluate 48 combinations of strategies, defenses, and tasks using gpt-4o-mini as the analysis assistant. Results show that direct override is ineffective in this setting, with a suppression rate of 0% for S1 classification attacks; persona hijacking can suppress 68% of malicious logs under a naive classifier and remains effective under stronger defenses; the summarization task carries the highest risk, with context manipulation achieving a 96% injection success rate with no defense, and still 38% even when output is constrained.

The researchers propose the attack setting of log-substrate prompt injection: in a security operations center (SOC), an LLM analysis assistant reads logs and alert data to generate classification labels, event summaries, or remediation suggestions, while log fields such as user agent, URL, payload, DNS query, and attempted username are controlled by the attacker and can carry embedded instructions. The authors divide attacks into four categories: direct override (S1), persona hijacking (S2), context manipulation (S3), and obfuscated payloads (S4), and evaluate 48 combinations of strategies, defenses, and tasks using gpt-4o-mini as the analysis assistant. Results show that direct override is ineffective in this setting, with a suppression rate of 0% for S1 classification attacks; persona hijacking can suppress 68% of malicious logs under a naive classifier and remains effective under stronger defenses; the summarization task carries the highest risk, with context manipulation achieving a 96% injection success rate with no defense, and still 38% even when output is constrained.

Related events and news

1 events · 1 news mentions

News that mentions this paper

Fortinet预测2027年提示注入或诱使智能体越权

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Log fields can be written by attackers, turning the SOC analyst's evidence context into an indirect prompt injection channel.

    LLM analysts in SOCs read attacker-writable log fields as evidence, so these fields can also carry instructions.

    • Scenario: The authors state that analysts must read heterogeneous evidence and give operational judgments. Production and open-source systems place LLMs on SIEM, EDR, and cloud telemetry, taking logs and asking for classification, summary, or recommended response.
    • Structural issue: The controllable fields the authors list include user agent, URI, payload, DNS names, email headers, and attempted usernames. The authors state that the delivery channel is inherent in logged traffic, with evidence and instructions both being plain text.
    • Existing gaps: The authors state that direct override has been the most studied historically, but is no longer effective on current models in this experiment. Simulators calibrated to published results also deviate from current models and cannot replace real-model evaluation.
    • This paper proposes: Defining this setting as log-substrate prompt injection, giving S1–S4, and evaluating with gpt-4o-mini on three tasks and four defenses, while using a deterministic mock to quantify the simulation gap.
    • Threat model:
      • Goal: Manipulate analyst output to favor intrusion, including marking malicious events as benign, making summaries omit or downplay attacks, and making remediation recommendations take no action.
      • Knowledge: Knows that an LLM is used downstream, but not the exact prompt template. The authors state that the attacker controls data that is later consumed, not the system prompt.
      • Capability: Remotely send traffic to publicly reachable services; no credentials, no internal network access, cannot modify the log pipeline after ingestion. It is not assumed the model can execute commands, call tools, delete evidence, or change the SIEM.
      • Victim system: SIEM collects network and application events; LLM analyst queries recent logs and outputs per-event labels, free-text summaries, or remediation recommendations. The authors state that even without tool access, rewritten labels or summaries may delay containment or mislead human analysts.
  2. What related research exists?

    Related work covers prompt injection, jailbreaks, SOC products, and two intrusion detection datasets; this paper lands on the log substrate.

    In the introduction and Related Work, the authors divide the background into prompt injection, jailbreaks, SOC deployment, and security datasets, and place this paper as indirect injection on the log substrate.

    Prompt injection

    • Direct injection: Perez and Ribeiro (2022) proposed direct prompt injection.
    • Indirect injection: Greshake et al. (2023) formalized indirect prompt injection in LLM-integrated applications.
    • Systematization and benchmark: Liu et al. (2024) systematized prompt injection attacks and defenses and provided a benchmark.

    LLM jailbreaks

    • Safety training: Wei et al. (2023) characterized failure modes of safety training.
    • Adversarial suffixes: Zou et al. (2023) demonstrated transferable adversarial suffixes.
    • In-the-wild prompts: Shen et al. (2024) characterized and evaluated in-the-wild jailbreak prompts. The authors say S3 borrows structural imitation from this line of work.

    LLMs in SOCs

    • Production deployments: Microsoft Security Copilot and Google Security AI Workbench. The authors say they represent the production systems motivating this research; the paper does not report results from running these systems itself.

    Security datasets

    • Schema reference: CIC-IDS2017 (Sharafaldin et al., 2018) and UNSW-NB15 (Moustafa and Slay, 2015) provide field structures and attack categories. The authors say they are used only as schema and scenario references, not as direct traffic traces.

    • Baseline methods: the paper does not run other published attack algorithms as comparisons. The four defenses (naive, structured, sanitized, constrained) are treated by the authors as baselines, not complete mitigations. The evaluation uses programmatically synthesized logs, not raw traffic from the above datasets.

    The authors say this paper specializes the injection literature to the SOC log substrate: malicious content is embedded in the evidence the model is supposed to analyze, and they say the direct injection pattern is already largely mitigated on the production-grade model in their experiments. The experimental section actually reports only gpt-4o-mini.

  3. How does the paper address this problem?

    Four payload types written to controllable fields, gpt-4o-mini scored by ISR across three tasks and four defenses.

    Overall this is a repeatable evaluation, not a new detector: synthetic logs, with four types of payloads appended to attacker-controlled fields, then gpt-4o-mini performs three SOC tasks under four defenses and is scored. The authors call this setting log-substrate prompt injection.

    Tasks and controllable surface

    • Three outputs: per-event classification, free-text event summary, and remediation recommendation. The authors explicitly do not assume the model can execute commands, call tools, or rewrite the SIEM; the attacks target only these decision outputs.
    • Controllable fields: user agent, http uri, payload, dns query, auth user, raw message. Figure 1 places all four strategies on these fields.
    • Knowledge assumption: the attacker knows that an LLM is used downstream, but does not know the exact prompt template. The temperature during the analysis phase is 0.

    Four payload types

    • S1 direct override: explicitly asks to ignore prior context. The authors say this is the most historically studied type.
    • S2 persona hijacking: forges an authoritative identity in the context, exploiting compliance with authority markers.
    • S3 context manipulation: imitates the structure of trusted output, including forged end markers and forged analyst annotations.
    • S4 obfuscated payloads: instructions written as seemingly encoded or system-generated content, used to interfere with keyword matching. The authors say it is a literal string imitating encoded syntax, and gpt-4o-mini does not attempt to decode or execute it. Examples are given in the main text and Figure 1; the original text is not quoted here.

    Synthesis and injection

    • Scale: 200 entries per task, with malicious/benign at 60/40. Field names, data types, and attack scenarios follow the schemas of CIC-IDS2017 and UNSW-NB15; log content is programmatically generated from attack-type templates, not raw traffic.
    • Malicious types: SQL injection, path traversal, credential stuffing, command injection, DNS tunneling, suspicious scanning.
    • Writing method: for each malicious log, the payload of the chosen strategy is appended to a random controllable field; benign logs are unchanged.
    • Invocation: gpt-4o-mini processes each log under one of four defenses, with temperature 0.

    Four defenses

    The authors say these defenses are deliberately simple, corresponding to common engineering responses that do not require modifying the upstream SIEM or fine-tuning the model, and serve only as baselines rather than complete mitigations.

    • Naive: logs are flattened into key=value and concatenated into the user message; the system prompt only specifies the role.
    • Structured: fields are wrapped in field tags with names; the system prompt states that field values are untrusted data, not instructions.
    • Sanitized: on top of the structured prompt, a keyword sanitizer replaces suspected injected content with [FILTERED] before sending to the model.
    • Constrained: structured prompt, plus post-hoc template constraints on the output. Classification can only be one of benign, suspicious, or malicious; remediation is forced to one of three prewritten sentences. The authors say this makes free-text leakage impossible. §5.1, when discussing classification failure, calls the constrained output space a binary choice, which is not the same as the three-label template here.

    Metrics and mock

    • Primary metric ISR: for classification, equals SR, i.e., the proportion of malicious logs labeled benign. For remediation, equals URR, i.e., the proportion of recommendations to take no action or explicitly discourage escalation. For summaries, it is the proportion that accept the injected instruction, omit the attack, or give a benign final judgment contradicting the underlying log.
    • Samples: 120 malicious logs per condition. The authors write that 0.68 corresponds to 82 successes, and state that the binomial 95% confidence interval for the main nonzero rates is approximately ±7 to 9 percentage points; differences smaller than this range should be interpreted cautiously. The classification degradation rate is below 0.08 across all conditions, and the main results omit it. The paper does not state who judged the summary ISR.
    • Mock: decisions are seeded by md5(log id||strategy||defense||task||field), reproducible without an API. The authors say it is calibrated to published results from Greshake et al., Perez and Ribeiro, and Liu et al., and is used to measure the simulator's deviation relative to the current model, not as a replacement for gpt-4o-mini.
  4. What experiments did the paper conduct?

    gpt-4o-mini: classification S1 suppression rate 0%, naive S2 0.68, summary S3 naive ISR 0.96.

    Experimental setup

    • Model: The only tested analyst is gpt-4o-mini, temperature 0. The deterministic mock is only a comparison, not a tested LLM.
    • Conditions: 4 strategies × 4 defenses × 3 tasks, totaling 48 conditions. 200 logs per condition, 60/40, i.e., 120 malicious and 80 benign. Success rates are computed only on the malicious subset. Benign samples are used to prevent defenses from labeling everything as malicious; the paper does not give accuracy on benign samples.
    • Logs: Programmatically synthesized, schema based on CIC-IDS2017 and UNSW-NB15. Injection randomly selects one of six attacker-controllable fields.
    • Defenses: naive, structured, sanitized, constrained. The authors treat them as baselines.
    • Metrics: Tables primarily use ISR. Classification ISR equals SR, remediation ISR equals URR. Summary ISR covers accepting instructions, omitting attacks, or benign conclusions contradicting the log. Degradation rates for all classification conditions are below 0.08. 0.68 corresponds to 82/120. The authors state that the binomial 95% interval for the main non-zero rates is approximately ±7 to 9 percentage points.
    • Review and repetition: The paper does not specify which model or human judges whether summaries meet the ISR definition, nor does it report the number of repetitions.

    Main results

    The table below shows partial ISR on gpt-4o-mini, taken from Tables 1–3. Only the naive and constrained endpoints are listed.

    Swipe horizontally to read the table

    TaskStrategynaiveconstrainedSource
    ClassificationS10.000.00Table 1
    ClassificationS20.680.33Table 1
    ClassificationS30.170.16Table 1
    ClassificationS40.000.00Table 1
    SummaryS20.490.24Table 2
    SummaryS30.960.38Table 2
    RemediationS20.340.20Table 3
    RemediationS30.390.10Table 3
    • Omitted rows: Summary S1/S4 and remediation S1/S4. In Table 2 and Table 3, S4 ISR is 0.00 under all four defenses. Summary S1 naive / constrained ISR is 0.07 / 0.00; remediation S1 is 0.09 / 0.01.
    • Authors' claims: Direct override is ineffective for classification, and they consider this literal phrasing to be a known safety training target. S4 is not decoded or followed by the model.
    • Non-monotonic: The authors state that persona hijacking is the strongest classification attack. In Table 1, S2 is 0.15 under structured and 0.22 under sanitized, not monotonically decreasing with stronger defenses. Their explanation: sanitization weakens forged authority markers before the prompt; constrained output occurs after generation and cannot prevent the model from first reading the persona statement. §5.1 calls the output space at this point binary choice; §4.3's classification template has three labels.

    Summary and remediation

    • Summary higher: The authors state that summary is more vulnerable than classification. In Table 2, S3 structured ISR is 0.75, sanitized 0.27. Naive S3 SR is 0.00, separate from the ISR in the main table: the authors state that success is rarely an explicit benign label, but rather omitting the attack, softening the description, or concluding no action needed. The middle two values for S2 are 0.44 and 0.35. The authors state that differences smaller than the confidence interval width should be interpreted cautiously, while large gaps like summary S3 under naive vs. sanitized are robust at this sample size.
    • Constrained output: The authors state that constrained limits free text, but cannot prevent the model from choosing a benign template after the injection structure changes the reading.
    • Remediation: The authors state that raw ISR is lower than summary (0% to 39%), but success makes the model recommend no action for real attacks. Under naive, both S2 and S3 exceed 30%, endpoints in the main table. In Table 3, structured S3 is 0.37, sanitized S3 is 0.08.

    Defense averages and simulation gap

    Table 4 shows average ISR across the four strategies.

    Swipe horizontally to read the table

    DefenseClassificationSummaryRemediationAverage
    Naive0.210.380.210.27
    Structured0.080.310.130.17
    Sanitized0.110.190.090.13
    Constrained0.120.160.080.12
    • Two sets of averages: The summary and §5.4 state naive to constrained as 26.6%, 17.3%, 13.2%, 11.8%. Table 4 average column is 0.27, 0.17, 0.13, 0.12. The two are inconsistent; the table above uses Table 4. The authors state that each layer reduces average ISR, but does not eliminate residual surface; improvements flatten after structured. The authors believe input-side defenses should be paired with output-side controls, interfaces that preserve field provenance, and human review for high-impact decisions.
    • Correlation: Across 48 conditions, mock vs. gpt-4o-mini ISR, Pearson r is 0.22 for classification, 0.42 for summary, 0.47 for remediation; mean absolute error is 0.30, 0.27, 0.22.
    • Deviation: Mock predicts naive S1 suppression rate of 92%, real model 0%. The authors state that mock is calibrated to earlier literature, when literal instruction override was a strong attack. For naive summary S3, predicted 95%, observed 96%; the authors state that mock underestimates the persistence of context manipulation after defenses. They believe such simulations should be used as hypothesis generators, not empirical evidence of current model behavior.

    Qualitative examples

    • One successful injection: Summary task, S3, underlying SQL injection log, injection in HTTP URI field. The paper gives the model output verbatim; the attack string and that output are not quoted here.
    • Authors' claim: The underlying log has clear SQL injection features, but forged structural markers are enough to completely override it; the model describes the entry as routine application traffic and labels it benign.

    Other ablations and analyses

    • Summary S1 ISR: naive 0.07, structured 0.05, sanitized 0.15, constrained 0.00 (Table 2). Sanitized is higher than the first two, unexplained in the paper.
    • Summary S2 SR: 0.07, 0.03, 0.20, 0.00 (Table 2, same defense order). Sanitized SR is higher than naive, unexplained in the paper.
    • Remediation S1 ISR: 0.09, 0.04, 0.08, 0.01 (Table 3).
    • Remediation S3: structured ISR 0.37, sanitized 0.08; constrained SR and ISR both 0.10 (Table 3).
    • Classification S3: 0.17, 0.17, 0.22, 0.16 (Table 1). The authors state that for classification it is 16% to 22%, but other tasks are higher.
    • All classification conditions have degradation rates below 0.08; the main results do not list individual cells.
  5. What are some points that can be further explored?

    The authors state that they evaluated only a single point in time for gpt-4o-mini, and did not include production logs, multi-turn attacks, or tool-using agents.

    Limitations and future directions noted by the authors

    • Single model snapshot: Only gpt-4o-mini, at one point in time. The authors state this should be viewed as a snapshot of current LLM analysts, not a general property of all models (§6.4).
    • Non-production logs: Synthetic structure based on CIC-IDS2017 and UNSW-NB15, without production traffic. The authors state that parser artifacts, truncation, normalization, and vendor fields in real logs may increase or decrease injection success (§6.4).
    • No multi-turn: Multi-turn attacks where the attacker iterates based on observed LLM behavior were not studied (§6.4).
    • No tool-based agents: Tool-based agents that can query SIEM data or execute response actions were not evaluated. The authors believe such systems may present a larger attack surface (§6.4).
    • Mock not generalizable: The mock can serve as a reproducible artifact, but should not be taken as a prediction for any specific LLM (§6.4, pointing to §5.5).

    Experimental coverage

    • The tested model is gpt-4o-mini, temperature 0; 48 conditions, 200 logs per condition (120 malicious, 80 benign), attack metrics computed only on the malicious subset (§4.1, §5).
    • Defenses are naive, structured, sanitized, constrained. The authors state they are simple engineering responses that can be adopted without changing the upstream SIEM or fine-tuning, and treat them as baselines rather than complete mitigations (§4.3).
    • Tasks are per-event classification, free-text summary, and remediation recommendation; payloads are appended to one of user agent, http uri, payload, dns query, auth user, raw message (§2–§4).
    • All 48 conditions compare deterministic mock and gpt-4o-mini ISR, reporting Pearson r and mean absolute error (§5.5).
    • The paper does not report the judge for summary ISR, agreement with humans, number of repetitions, or accuracy or false positive rates on benign samples (§4.2, §5).
  6. Summarize the main content of the paper

    On gpt-4o-mini, persona hijacking and context manipulation can rewrite SOC analysis outputs, while direct override is ineffective for classification.

    The authors call decision-oriented prompt injection when a SOC analyst reads attacker-writable logs log-substrate prompt injection, and evaluated 48 conditions on gpt-4o-mini.

    • Problem: classification, summarization, and remediation recommendations all consume recent logs from the SIEM. A remote attacker without credentials cannot modify the post-ingestion pipeline and does not know the exact prompt template, but can write fields in requests to public services that are later treated as evidence. The authors do not assume the model can call tools or modify the SIEM.
    • Approach: S1 direct override, S2 persona hijacking, S3 context manipulation, S4 obfuscated payloads, appended to random controllable fields. 200 synthetic logs per condition (120 malicious), temperature 0. Defenses are naive concatenation, field tags, keyword sanitization, and output templates. The cross-task primary metric is ISR: for classification it equals the proportion labeled benign, and for remediation it equals the proportion recommending no action.
    • Classification and obfuscation: under all four defenses, the S1 classification suppression rate is 0.00; in Tables 1–3 the S4 ISR is 0.00. The naive classification S2 suppression rate is 0.68, constrained is 0.33, with structured at 0.15 and sanitized at 0.22 in between, not monotonically decreasing.
    • Summarization and averages: the summary S3 ISR is 0.96 under naive and 0.38 under constrained; the SR for that naive condition is 0.00, and the authors say the success is mainly omission or softening rather than producing an explicit benign label. The authors say the average ISR across all conditions drops from 26.6% to 11.8%; the corresponding average columns in Table 4 are 0.27 and 0.12.
    • Simulation gap: the mock predicts a naive S1 suppression rate of 92%, while the real model is 0%. Pearson r for classification, summarization, and remediation is 0.22, 0.42, and 0.47. The authors argue that literature-calibrated simulators cannot replace evaluation of the current model.
    • Authors' deployment conclusions: raw logs should be treated as adversarial input, not ordinary analyst context. Direct override should not be the only test; the real surface is authority imitation and structural imitation. Summaries should be paired with field provenance, constrained decision fields, and human review. The authors also state that this is only a snapshot of gpt-4o-mini at one point in time.
Read originalarxiv.org