Local LLMs in AppSec: What Open Tools and Models Can Handle in Application Security

The article examines how local large language models can be integrated into application security workflows without relying on cloud subscriptions. It traces the evolution from llama.cpp in 2023 through agentic frameworks like PentAGI and Strix in 2025-2026. Teams can now run models on local hardware, connect them to code analyzers such as Semgrep, and delegate specific tasks like vulnerability path reconstruction or multi-step application testing. The piece highlights practical scenarios including static code review, dynamic testing with browser and terminal agents, and security evaluation of embedded AI assistants using tools like Garak and PyRIT. It stresses the importance of task decomposition, context management, and verification of model outputs to avoid misleading results. Hardware performance, model selection, and custom agent configurations are presented as key factors for successful adoption.

HabrTranslated from Russian

Read at source

The rise of local large language models has opened new possibilities for application security teams that prefer to keep sensitive code and data inside their own infrastructure. Instead of purchasing cloud subscriptions, organizations can now run models on workstations, link them to existing code analysis tools, and delegate selected parts of security research to the AI. Open-source orchestration frameworks make it possible to control exactly which data reaches the model, where processing occurs, and how autonomous the verification process becomes.

Early experiments showed that simply assigning an entire audit to a small local model often produced results that were difficult to interpret. Researchers therefore began breaking security work into discrete tasks of varying complexity: parsing scanner findings, tracing user-controlled data flows, or conducting multi-step application investigations. This decomposition approach, first demonstrated in projects such as PentestGPT, allowed models to maintain context across successive steps rather than losing the thread of an assessment.

By 2024 and 2025 several open-source environments matured enough to support fully local deployments. Ollama and llama.cpp provided efficient model execution on consumer hardware, while agent frameworks including PentAGI, Strix, and Microsoft’s PyRIT added capabilities for tool use, action selection, and result logging. Vulnhuntr demonstrated how models could request specific functions and classes when analyzing Python projects, and Taskflow Agent from GitHub Security Lab introduced reusable task descriptions that could be shared independently of the underlying execution engine.

Three main usage patterns have emerged. In static review, a model receives code fragments flagged by analyzers such as Semgrep and helps determine whether a reported issue is reachable and exploitable. In dynamic testing, agentic systems equipped with browsers, proxies, and terminals allow the model to choose requests, observe responses, and refine hypotheses while respecting role-based access rules. Finally, when applications already contain embedded LLMs, dedicated testing suites such as Garak, Giskard, and DeepTeam enable repeated prompt-injection and capability-abuse checks against both the target model and any supporting evaluation models.

Successful adoption requires careful attention to performance and verification. Agentic workflows accumulate long histories and issue many inference calls, so teams must benchmark configurations on realistic tasks rather than isolated prompts. Model errors early in an investigation can derail subsequent steps, and any verdict produced by a secondary evaluator model still needs expert review against actual executed actions or returned data. Additional components such as embedding models for retrieval must also be assessed for data leakage risks when confidentiality is paramount.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in AI Security

Logical Argument Claims Full Alignment of Superintelligent AGI Is Fundamentally Impossible
Claude Account Bans Linked to IP Reputation, Device Environment and Payment Channels, But No Confirmed Formula
From Accessible to Controllable: Ruishu Information Launches AITM for AI Agent Lifecycle Security