AI & Security

LLM Context Window Security: Fitting Fleet Telemetry

Turn raw fleet telemetry into a bounded evidence packet with exact scope, stable identity, current facts, and a replay path.

Chris Seymour, Cofounder and Principal at Artemes AI
Chris Seymour
Cofounder, Principal
Aug 22, 2026 9 min read
Funnel showing raw fleet telemetry becoming a compact security case packet before language model analysis

LLM context window security is not a contest to fit more logs into a prompt. The job is to give the model the smallest evidence packet that can support one decision, while keeping every original record available for review.

The problem is not a small context window. It is treating raw fleet telemetry as context. More events add cost, duplicates, stale facts, conflicting identities, and attacker controlled text. They do not automatically add understanding.

A security team needs an evidence broker between the fleet and the model. It scopes the question, retrieves typed records, correlates them, preserves contradictions, and gives the language model a bounded case. The model reasons. The evidence store remembers.

Infographic

The context window gets a case, not a firehose

Keep complete telemetry outside the model. Send a small evidence packet tied back to the original records.

Fleet telemetry reduced into a security evidence packetA funnel moves raw fleet events through scope, normalization, correlation, and evidence selection. The language model receives a compact case packet while full records remain in the evidence store.CONTEXT IS A SELECTED VIEW OF THE EVIDENCEFULL FLEET TELEMETRY STOREevents, snapshots, identity, software, network, policy, history1. SCOPEasset, question, time, identity, authority2. NORMALIZE AND CORRELATEstable IDs, typed fields, duplicates linked once3. SELECT EVIDENCEdecisive facts, contradictions, unknownsCASE PACKETsmall enough to reason overLLM JUDGMENTSOURCE REFERENCESfull records stay available

What is LLM context window security?

The context window is everything a model can use during one inference: system instructions, the operator request, conversation history, retrieved records, tool results, and space for the answer. Security comes from deciding which of those inputs are trusted, authorized, current, relevant, and safe to combine.

Fleet telemetry is the opposite of a tidy document. It is continuous, repetitive, time sensitive, and full of identifiers that almost match. One process may appear in an endpoint event, a network record, a detection, and a ticket. If the pipeline pastes all four into a prompt, the model may count one event four times or prefer the most fluent record over the most authoritative one.

Keep raw data in the systems designed to query it. Context should contain a typed view with stable source IDs, collection time, asset identity, relevant values, known gaps, and the exact decision requested. That is closer to a case file than a transcript dump.

Why does more telemetry produce worse answers?

Noise competes with signal. Repeated status messages, unrelated events, long stack traces, and verbose tool output consume attention that should stay on the condition under review. A larger window raises the ceiling, but it does not decide what deserves attention.

Time also gets flattened. A service installed last month, stopped yesterday, restarted ten minutes ago, and patched two minutes ago can appear as four equally visible statements. Without explicit event time and a rule for current truth, the model can build a persuasive story from an obsolete state.

Trust boundaries disappear when text is concatenated. A system instruction, a policy record, an analyst note, and an HTTP user agent are all tokens once they enter the window. The model does not inherit database access control or source authority unless the surrounding system enforces it.

How are analysts using LLM context in real security work?

A longitudinal study released in September 2025 examined 3,090 queries from 45 SOC analysts over ten months. Ninety three percent aligned with established NICE cybersecurity competencies. Most sessions lasted one to three turns, and analysts mainly used the systems to interpret low level telemetry or improve technical communication while keeping decision authority. The empirical study of LLM use inside security operations centers supports a narrow design: help an operator understand a case, not load the whole SOC into one conversation.

Cisco published an analytics context engineering model in February 2026 that reaches a similar conclusion for machine data. It recommends storing complete payloads outside the model and constructing optimized views with database methods and simple SQL. The ACE approach for machine telemetry is useful because it treats selection as a data problem, not a prompt trick.

The gap in most context advice is operational. “Retrieve relevant data” is not a control. Teams need a fixed packet schema, byte and item budgets, source priority, omission rules, and a way to return to original records.

What context budget should a fleet investigation use?

Set the budget by decision, not by model capacity. A question about one exposed service may need asset identity, package version, process state, listener state, network route, compensating control, policy, and collection health. It does not need every event from the host.

Consider a 10,000 endpoint fleet that emits 20 candidate records per endpoint in a day. At an assumed average of 220 bytes per compact record, that is 44 million bytes before indexes, envelopes, duplicates, or tool output. Pasting the day into a model is not analysis. It is paying a model to rediscover filters a database can apply exactly.

Instead, build one case packet with at most 40 evidence objects. If each object averages 500 characters, the evidence body is about 20,000 characters. Reserve separate space for instructions, the question, policy, tool results, and the answer. These are design limits, not universal numbers. Measure them against accuracy, latency, and cost on your own replay set.

When a packet exceeds its limit, do not silently cut the tail. Split the question, summarize a clearly defined group with preserved members, or ask the operator to narrow scope. Record what was omitted. An answer built on an invisible truncation is not defensible.

How do you turn fleet telemetry into a context packet?

Start with scope. Resolve the requesting identity, permitted sources, target assets, time range, task type, and decision authority. A broad natural language question should become a structured query plan before any records enter model context.

Normalize next. Map host, user, process, package, container, cloud resource, and finding identifiers into stable entities. Keep source values and conversion errors. Normalize time to one standard while preserving collection time and event time as separate fields.

Correlate without erasing. Link duplicate observations to one fact, but preserve disagreement. If one source says a package is absent and a newer endpoint query says it is present, the packet should contain the conflict and source order. The model should not choose by majority vote.

Select evidence according to the task contract. Include facts that can change the verdict, facts that challenge it, and health records that show whether absence means clean or unobserved. Put long explanations and advisory text in a separate reference lane. Our guide to RAG security for environmental evidence covers that two lane design.

Construct a packet with a case ID, question, asset, time, evidence objects, source references, missing fields, contradictions, policy version, and allowed output schema. After inference, store the packet hash and decision trace. That makes replay possible when the model or policy changes.

Packet fieldRequired valueFailure it prevents
ScopeAsset, task, time, requesterCross tenant or stale analysis
EvidenceTyped values and source IDsUnsupported narrative
HealthCollector and connector statusUnknown treated as clean
ConflictCompeting values and authoritySilent fact selection
BoundaryOutput schema and allowed toolsNarrative becoming authority

Version the packet builder separately from the model. A retrieval rule change can alter the answer even when the model stays fixed. During review, show which records were eligible, which entered the packet, and why the rest were excluded. That selection trace is the missing evidence in many AI incident reports.

What does exact telemetry retrieval look like?

Use deterministic queries to create the facts before the model interprets them. This read only query joins running processes with listening ports and keeps only listeners on all IPv4 interfaces:

SELECT DISTINCT
  process.name, listening.port, process.pid
FROM processes AS process
JOIN listening_ports AS listening
  ON process.pid = listening.pid
WHERE listening.address = '0.0.0.0';

The syntax comes from the official osquery shell documentation. Run the query against the target host or fleet manager, retain the rows and collection time, then give the model only the relevant listener objects. Do not ask it to infer which processes are listening from a mixed log dump.

A typed query also exposes absence. Zero returned rows means something only when the collector succeeded, the platform supports the table, the asset identity is correct, and the query time fits policy. Put those health facts beside the result. Unknown should never be compressed into clean.

This follows the same evidence discipline described in the older guide to querying live endpoint state. Collection produces facts. Context construction decides which facts belong to one question.

Can fleet telemetry attack the context window?

Yes. Logs contain attacker controlled strings from URLs, headers, authentication fields, API payloads, file names, and error messages. If a model reads those fields as ordinary prose, a stored instruction can attempt to hide activity, fabricate a finding, disclose internal data, or change the requested output.

A July 17, 2026 preprint introduced LogInject using 12,847 entries across Apache access logs, SSH authentication logs, and JSON application traces. It evaluated three models and found that one defense called spotlighting degraded as context grew: attack success rose from 32 percent at 1,000 tokens to 72 percent at 16,000 tokens. No single tested defense pushed attack success below 50 percent. The context contamination study for security logs is a recent warning that a larger batch can expand both noise and attack surface.

Treat telemetry as untrusted data. Keep permissions and policy outside the prompt. Escape or type free text, label source trust, limit batch size, validate output against a schema, block telemetry from granting tools, and use an independent verifier before consequential action. Preserve the original field so investigators can see what influenced the result.

Which context metrics belong in production?

Measure answer accuracy by task, evidence coverage, decisive fact recall, duplicate rate, stale fact rate, contradiction preservation, unsupported claim rate, packet size, retrieval latency, model cost, and operator edits. Track how often truncation or source failure changed a verdict.

Run removal tests. Delete the listener row and expect the system to stop claiming exposure. Add a newer process record and expect the timeline to change. Insert hostile text in a user agent and expect no change in authority. These cases show whether the packet contract is real.

Keep a full replay bundle: source record IDs, retrieved values, normalization version, selection rule, packet, model version, output, reviewer decision, and later outcome. That bundle turns a production disagreement into a test instead of a meeting.

Frequently asked questions

Does a larger context window improve security analysis?

It can hold more evidence, but it can also hold more noise, stale state, contradictions, and attacker text. Selection quality matters more than filling the available window.

Should raw security logs go directly to an LLM?

No. Keep full logs in a queryable store. Normalize, scope, and select a typed evidence view, then retain links to the original records.

How should a system handle missing telemetry?

Report the gap as evidence. Distinguish clean, absent, unsupported, stale, and collection failed. Missing state should trigger abstention when it can change the decision.

Can summaries replace original fleet records?

No. Summaries help navigation, but operators need original values, identity, time, and provenance to reproduce a security decision.

Executive takeaway

Stop stuffing telemetry into prompts. Keep complete records in a governed evidence store. Build one typed case packet per decision. Preserve contradictions and unknowns. Test the packet against noise, time, truncation, and hostile input.

Artemes AI uses deep endpoint context with AI driven analysis, but the useful unit is still a bounded case with a proof path. Start with one fleet question and write its packet schema before choosing a context window. The LLM system analysis guide shows how that packet becomes a security judgment without blurring facts and policy.

Artemes AI

Put more evidence behind vulnerability decisions

Artemes AI combines endpoint telemetry, sourced vulnerability intelligence, and analysis with practitioner review so teams can examine the evidence, missing context, and recommended next step together. We are accepting early access requests now.

Chris Seymour, Cofounder and Principal at Artemes AI

Chris Seymour

Cofounder, Principal

Chris writes about vulnerability prioritization, exploitability, remediation supported by AI, and the engineering realities of turning scanner output into remediation decisions.

AI Security
Endpoint Telemetry
Machine Learning
Found this useful? Share it.

Get articles like this in your inbox.

Security research and occasional Artemes AI product updates.