Agentic AI
New Framework Uses Logic Programming to Verify AI Security Vulnerability Findings
EntailLLM combines LLM agents with formal logic verification to ensure AI-discovered software vulnerabilities hold up against rigorous domain knowledge checks.
Large language model agents are now commonly deployed to spot potential security flaws in software, yet their analyses can inadvertently contradict established domain principles—a critical problem when systems protect human safety. Existing approaches either score outputs as predictions or confine reasoning to predefined knowledge graphs, neither of which validates whether proposed vulnerability findings are grounded in independent expert knowledge.
Addressing LLM Reliability in High-Stakes Settings#
Researchers have introduced EntailLLM, a system designed to bridge this gap. The framework pairs a specialized LLM agent with a rigorous validation layer. An agent first identifies a traversal path through a program's function call graph that could lead to a vulnerability. That path is then subjected to formal verification: it must satisfy both a separate domain knowledge graph and a logic program, using annotated logic to determine logical entailment. This dual-check approach ensures findings don't rest solely on the agent's reasoning but align with established principles of software security.
Testing Across Real-World Scenarios#
The team evaluated the framework by running six distinct agent configurations against three classes of common weakness enumerations (CWEs), testing them on eight compiled binaries ranging from 405 to 12,696 functions in size. Results showed that agents refined with self-correction and access to a priori domain knowledge performed best. Across all configurations, entailment scores rose from 77% to 98%—meaning findings became far more likely to be justified by underlying domain knowledge. The system degraded in only 3 out of 118 test scenarios.
Notably, EntailLLM was deployed end-to-end on real medical-device binaries, achieving 98% entailment without needing device-specific tuning, suggesting practical readiness for safety-critical applications.
Formal Guarantees and Explainability#
The framework inherits the mathematical foundations of generalized annotated logic, providing what researchers call logical verification of agent output. This means findings are not only explainable to humans but grounded in formally defined semantics—a key requirement for systems analyzing software that runs in medical or other life-critical contexts.

