Papers
Topics
Authors
Recent
Search
2000 character limit reached

Logic Sabotages: Adversarial Logic Manipulation

Updated 20 April 2026
  • Logic Sabotages are adversarial interventions that subvert digital logic and reasoning systems by embedding stealthy, formally valid manipulations.
  • They exploit vulnerabilities across hardware and software, including logic bombs, reduction-based triggers, and chain-of-thought attacks in large models.
  • Mitigation strategies emphasize rigorous code audits, runtime monitoring, and adversarial training to preserve system integrity.

Logic sabotages are adversarial interventions that subvert the correctness, intent, or resource semantics of digital logic, program code, or reasoning systems, while adhering to or mimicking the expected formal structure. Unlike attacks that compromise the content superficially or through mere data manipulation, logic sabotages target the underlying logical pathways, reasoning procedures, or execution flows, often with the aim of evading both automated and human detection. Manifestations range from logic bombs and hardware Trojans in circuits, to chained reasoning attacks in large reasoning models (LRMs), to prompt-layer infections in agentic LLM systems, and even semantic override hallucinations in LLM-based formal reasoning.

1. Foundational Definitions and Taxonomy

Logic sabotage collectively describes attacks that subvert the intended logical operation of a system through precise, formally admissible changes to its logic layer, reasoning trace, or implementation code. The attack surface spans both hardware and software domains:

  • Logic Bombs (SW/HW): Hostile code or logic that remains dormant until specific, often rare, conditions are met, at which point it enacts malicious behavior (e.g., assertion failures, sensor manipulation) (Bouras et al., 31 Jan 2026, Govil et al., 2017).
  • Logic Layer Prompt Control Injection (LPCI): Encoded, persistent, and conditionally-triggered payloads embedded in memory or tool output, executed when specific contextual triggers are met in persistent agentic LLM deployments (Atta et al., 14 Jul 2025).
  • Logic- and Reduction-Based Hardware Trojans: Post-fabrication triggers exploiting Boolean or reduction operations on circuit nets to activate hardware payloads, leveraging high stealth and extremely low probability triggers (Das et al., 2022).
  • Semantic Override in LLMs: Systematically incorrect model reasoning despite explicit prompt-local redefinitions, due to reversion to globally pretrained semantics (e.g., operator overloading ignored) (Thota et al., 19 Feb 2026).
  • Chained Reasoning Attacks and Resource Sabotage in LRMs: Prompt-based or data-poisoned interventions that force LRMs into pathologically verbose or adversarially controlled chain-of-thoughts, with or without answer correctness degradation (Yi et al., 24 Jul 2025, Liu et al., 29 Jan 2026, Yao et al., 19 Feb 2025).
  • Logic-Chain Injections and Obfuscation: Attacks that decompose adversarial intent into benign logical statements, or obfuscate surface forms while preserving underlying logic, thus exploiting both model and human reasoning vulnerabilities (Wang et al., 2024, Borah et al., 1 Feb 2026).

Key terminology encountered includes “logic bombs,” “logic-layer infection,” “overthinking backdoors,” “semantic override,” “Trojan keys,” and “reduction-based triggers.” Each class targets different layers of the logic or reasoning stack and is often tailored for stealth and mitigation avoidance.

2. Logic Sabotage in Hardware: Bombs and Trojans

In digital design and industrial control, logic sabotages exploit deterministic logical pathways and their triggering mechanisms:

Ladder Logic Bombs (LLBs) in PLCs:

  • LLBs are malware written in IEC 61131-3 languages (e.g., Ladder Diagram), inserted into PLC programs, typically dormant and activated by specific triggers (external input, event sequence, timer, or internal state). Payloads include sensor value tampering, DoS, or data exfiltration (Govil et al., 2017).
  • Stealth mechanisms: Code can be hidden within AOIs, distributed subroutines, or minimal-footprint additions, evading visual inspection and automated integrity checks.

Hardware Trojans: Logic and Reduction-Based

  • Logic-based triggers compute a Boolean function over internal nets; reduction-based triggers collapse a vector via a global operator (e.g., XOR across all output bits) (Das et al., 2022).
  • Such triggers are designed to be infrequently activated under normal operation, maximizing stealth and reducing detection feasibility via ATPG or functional test.
  • Payloads include single-bit inversion, FSM hangs, all-zero PRNG state injection, or data word duplication. Overhead is minimized (<1% LUTs/area).

Countermeasures include adversarial ATPG, runtime monitors, golden logic repository hash comparison, and design diversity. Nonetheless, rare-state triggers and cleverly partitioned logic–as demonstrated in both LLBs and reduction Trojans–pose enduring detection barriers.

3. Software and ML Pipeline Logic Sabotages

Logic sabotage in software spans three main vectors: code-layer manipulations, symbolic execution traps, and semantic misalignment.

Logic Bombs in Program Execution:

  • Defined by unreachable or solver-hostile program branches (assertions) that a program analysis tool cannot resolve with standard SMT-based symbolic execution, despite theoretical satisfiability (Bouras et al., 31 Jan 2026).
  • Example: Path condition π_pre ∧ π_bomb is satisfiable, but SMT(π_pre ∧ π_bomb) returns timeout/unknown, blocking further code coverage.

Logic Sabotage in ML Research Pipelines (ASMR-Bench):

  • Adversarial edits to ML research code, often in mathematical or programming logic rather than design parameters, that invert key findings while preserving top-level methodology (Gan et al., 17 Apr 2026).
  • Examples: Changing entropy calculation from H(p) to 1-p, or off-by-one errors in probe location indexing. Such logic-level sabotage resists superficial audit and often passes uncritical acceptance testing.
  • Evaluated by area under ROC curve (AUROC) for sabotage detection and top-1 fix rate for correct remediation.

Mitigations in ML code auditing include ensemble auditing (LLM, human, hybrid), inline documentation, reproducibility standards, standardized statistical/unit tests, and experimental counterfactuals.

4. Adversarial Reasoning: Chain-of-Thought and Logic-Level Attacks

Large Reasoning Models (LRMs) and agentic LLMs are susceptible to novel chains-of-logic attacks that exploit their reasoning processes and resource expense:

Overthinking Backdoors and DoS Sabotage:

  • Attacks such as BadReasoner and ReasoningBomb introduce verbosely triggered reasoning chains via prompt triggers or backdoor data poisoning, resulting in computational DoS by inducing LRMs to produce pathologically long chain-of-thought traces (Yi et al., 24 Jul 2025, Liu et al., 29 Jan 2026).
  • Backdoors are tunable (e.g., the number of "TODO" tokens controls reasoning length), ensuring the answer is unchanged but with exponentially increased computation.
  • ReasoningBomb uses RL-generated prompts that maximize inference cost, achieving up to 19,263 reasoning tokens (mean amplification of 286.7x per input token), with ~99% evasion of anomaly detectors.

Mousetrap attacks and Chaos Machine framework:

  • Rather than direct jailbreaks, these attacks use iterative, invertible mappings (chaos policies) embedded in the reasoning chain, forcing the LRM to sequentially reconstruct an obfuscated, potentially harmful request—overcoming layered safety filters at each reasoning step (Yao et al., 19 Feb 2025).
  • Empirically achieves attack success rates as high as 98% on cutting-edge LRMs.

5. Logic Sabotage in LLMs: Prompt Control, Obfuscation, and Semantic Override

The logic layer of modern LLM systems presents additional attack surfaces:

Logic-Layer Prompt Control Injection (LPCI):

  • Encoded payloads (e.g., Base64, unicode homograph) are injected in memory (vector store, logs), remaining dormant until a contextual trigger (role, keyword) is met, at which point hidden instructions are executed (Atta et al., 14 Jul 2025).
  • LPCI attacks operate across sessions, evade session-local input filters, and exploit role/escalation logic, execution lifecycle, and persistent memory artifacts.

Obfuscation-Induced Reasoning Collapse:

  • The Logifus framework introduces equivalence-preserving obfuscations (e.g., De Morgan rewrites, contrapositions) to standard reasoning problems. State-of-the-art LLMs exhibit catastrophic performance degradation under such logical camouflage—up to a 47 percentage point drop for GPT-4o, and up to 80 for some instances (Borah et al., 1 Feb 2026).
  • Indicates that many models perform superficial pattern-matching rather than deep, symbolic reasoning, breaking under minimal surface-level logic perturbations.

Semantic Override Hallucinations:

  • Even in elementary logic and circuit reasoning tasks, LLMs frequently revert to globally learned definitions (e.g., XOR semantics, gate functions), ignoring local prompt-level operator or semantic redefinitions (Thota et al., 19 Feb 2026).
  • This failure mode persists even in the presence of explicit operator overloading and is distinct from factual hallucination or fluency errors.
  • Quantitatively, the mean verification-correct accuracy can fall to 71.4% on definition-override traps, with semantic override contributing to approximately one-third of all logic errors.

6. Logic Sabotages in Industrial Control and Cyber-Physical Domains

Industrial control systems illustrate unique dynamics due to their reliance on embedded logical control code:

  • Symbolic Regression Logic Recovery (SRLR): Facilitates counter-sabotage by passively learning explicit, human-interpretable logic rules from black-box PLC input-output traces, outperforming neural/semi-supervised detectors (up to 0.93 point-adjusted F1 score for attack detection) (Zhou et al., 12 Dec 2025).
  • Defense-in-depth practices for logic sabotage include golden logic repositories, periodic hash/checksum validation, enforced code review on AOIs/subroutines, and runtime invariant checking, as described for both ladder logic bombs and broader ICS sabotage (Govil et al., 2017, Zhou et al., 12 Dec 2025).

7. Implications, Mitigations, and Future Research Directions

Logic sabotages reveal structural weaknesses inherent to code, circuit, and reasoning-layer abstractions:

  • Stealth and Evasion: Attacks that manipulate rarely exercised logic states (hardware), encode triggers obfuscated in memory, or leverage reasoning inertia (LRMs) typically evade both static and behavioral defenses.
  • Detection: Network-based IDS, centralized logic store comparison, runtime monitors, and anomaly detection in reasoning/logging patterns are partial mitigations, but advanced attacks leverage normal operational modes or “on-manifold” natural language, hindering anomaly-based detection (Atta et al., 14 Jul 2025, Gan et al., 17 Apr 2026).

Avenues for research and development include:

  • Incorporating specification-compliance losses and fine-tuning on obfuscated/problem-specific rewrites to improve semantic and logic-layer robustness in LLMs (Thota et al., 19 Feb 2026, Borah et al., 1 Feb 2026).
  • Contrastive and adversarial training on chaos-based, logic-layer, and cross-session memory attacks.
  • Architectural innovations to explicitly separate global vs. prompt-local semantics in reasoning modules.
  • Enhancing auditing standards and automated validation for ML-code and hardware netlists.

Across domains, logic sabotages highlight the imperative for holistic, logic-aware security, rigorous verification techniques, and an expanded audit paradigm that spans the full logic-processing stack, from transistor netlists to symbolic reasoning engines and AI research code (Das et al., 2022, Gan et al., 17 Apr 2026, Thota et al., 19 Feb 2026).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Logic Sabotages.