LIVE · cybersecurity feed
Live wire
Malware Hijacks Android Car Head UnitsCritical Flaw in NASA/JPL Open-Source Spacecraft Command Software Allowed Unauthenticated Command ExecutionCVE-2026-73570 · U.S. CISA adds Zimbra Collaboration Suite (ZCS) flaw to its Known Exploited Vulnerabilities catalogCVE-2024-3094 · Connecting the Dots: Securing the Overlooked Corners of the Software Development Lifecycle (SDLC) Supply Chain14 Trojanized npm Packages Drop RedC2 4.0 Linux Backdoor With AI-Assisted C2Hundreds of leaked AWS keys give full control over corporate accountsAndroid Car Malware Spreads Through Built-In Updaters for Ad Fraud, Proxy BotnetMalware injected into popular Rust packages to steal developer credentialsSix Maximum-Severity Flaws Found in Cisco ProductsCritical Isolated-vm Vulnerability Leads to RCE on Host
ai

Context Engineering | Compaction & Agent Memory for Automated Malware Analysis

SentinelLABS has evaluated OpenAI's native context compaction feature for automated malware analysis, finding it significantly reduces token usage and costs without impacting overall task quality. Compaction compresses past context into a denser working state, which is crucial for long-running agent tasks where context can accumulate rapidly and degrade performance. While effective, the analysis noted a slight decrease in the model's ability to recover higher-level structural reasoning, underscoring the need to store critical artifacts in durable storage rather than relying solely on compacted context.

zeroday.news ·

SentinelLABS has conducted an evaluation of OpenAI's context compaction feature, a technique designed to manage and compress the history of interactions for long-running agent tasks. This pattern aims to reduce the volume of input tokens, thereby lowering costs and minimizing noise in the data processed by AI models, without sacrificing the quality of the output. The study focused on applying this compaction method to automated malware analysis, a domain that presents unique challenges for agent memory and state management.

Automated malware analysis is inherently complex for AI agents. The process involves tasks such as identifying key functions, interpreting code paths, analyzing strings and API calls, and renaming components based on observed behavior. To achieve high scores, agents must maintain a coherent theory about the malware, track collected evidence, and manage open questions. This iterative process often involves multiple rounds of investigation, where connections between different parts of the code may be unclear or require significant effort to uncover.

During their evaluations, SentinelLABS observed that agents tended to accumulate a large volume of tokens over time, carrying the full history of the analysis. This is analogous to a human analyst who, while working, compresses their understanding and externalizes detailed notes rather than holding every raw observation in active memory. Compaction addresses this by distinguishing between working memory, which holds the current state and active hypotheses, and durable memory, which stores specific findings and exact artifacts.

SentinelLABS implemented compaction by using it to carry forward the agent's working state, including its current goal, past actions, learned information, active hypotheses, and open questions. Crucial evidence, such as tool outputs and decompiled functions, was stored externally in durable storage. This separation allowed the agent to retrieve exact evidence when needed without relying on the compacted context to preserve it verbatim, thus avoiding the potential loss of critical details during summarization.

The evaluation compared runs with and without compaction enabled. The results showed a significant reduction in input tokens by approximately 86%, with corresponding decreases in output and reasoning tokens, and a reduction in model calls. Crucially, the aggregate evaluation score for the malware analysis task remained effectively unchanged. This indicates that compaction successfully maintained the necessary state for the workflow to continue correctly while dramatically reducing the computational overhead.

However, the analysis did identify a minor drawback: a decrease in the model's ability to recover higher-level domain objects and structures. This suggests that compaction occasionally compressed structural reasoning that could be valuable for later analysis. This finding reinforces the importance of storing exact artifacts in durable storage, as relying solely on compacted context might lead to the flattening of crucial analytical details.

SentinelLABS also explored different implementation methods for compaction. OpenAI offers server-side compaction, which automatically compresses context when a threshold is met, and a standalone compaction endpoint for more explicit control. Other providers like Anthropic and Google, as well as frameworks like LangChain, offer similar approaches under different names. The choice between server-side and standalone compaction depends on the specific use case, with standalone being useful for distinct phase boundaries in multi-stage workflows, and server-side being simpler for long-running coding agents or chat assistants.

aimalware analysiscontext managementlarge language models
ShareXLinkedInWhatsAppFacebook

More News

view all →
ai

If you're not using AI to attack your own systems, your adversaries will

Agents are also the new attack surface - cue defenders' existential angst

security

Postal Service moves to finalize mail ballot regs before SCOTUS ruling

The rules have already been rejected by multiple state courts, but the Trump administration said it’s preparing in case of a favorable Supreme Court decision. The post Postal Service moves to finalize mail ballot regs before SCOTUS ruling appeared first on CyberScoop.

vulnerability

ToxicPanda 2.0 Gets a Major Upgrade, Expanding Attacks Across 16 Countries

ToxicPanda 2.0 targets 349 financial apps and abuses Android Wireless Debugging to gain deeper device access and steal banking credentials. ToxicPanda used to be a Europe-focused nuisance targeting a manageable list of banks. That version is gone. Zimperium’s zLabs team just documented ToxicPanda 2.0, and the numbers alone tell the story: 349 targeted financial institutions […]

privacy

TikTok Agrees to $400 Million Settlement in U.S. Child Privacy Lawsuit

TikTok has agreed to a $400 million settlement with the U.S. Department of Justice to resolve a lawsuit alleging violations of child privacy laws. The lawsuit, filed in 2024, accused the company of improperly collecting data from users under 13 and failing to comply with parental requests to delete accounts. The settlement includes an immediate payment of $300 million and an additional $100 million contingent on the dissolution of a prior consent decree related to Musical.ly.

malware

Hackers infect Android car head units with proxy botnet malware

A supply-chain attack targeting Android-based car head units is using a legitimate device-update app to spread malware that enlists compromised devices in a proxy botnet or uses them for ad fraud. [...]

security

Named Pipes Under Attack: Securing Windows Interprocess Communication

Windows named pipes provide fast interprocess communication, but weak access controls can expose privileged services to untrusted processes. ThreatLocker explains how endpoint verification, command authorization, strict input validation, and narrowly scoped privileges can help secure named-pipe communication. [...]