SShortSingh.
Back to feed

Developer Finds Security Scanner Misses JSON Secrets After Building Deliberate Trick Tests

0
·1 views

A developer tested their own MCP security scanner, mcpscan, using a purpose-built harness designed to probe each detection rule with synthetic attack samples. Six of seven test fixtures triggered findings, but the secrets detection rule failed entirely on a JSON config containing a live API key. Investigation revealed two flaws: the token pattern rejected keys with internal dashes, and a fallback regex broke on JSON's quoted key format — meaning the scanner silently missed the most common MCP config structure. A targeted patch fixed both issues, though two obfuscation-based bypasses involving string splitting and zero-width characters remain open and documented. The developer argues that a scanner aware of its own blind spots is more reliable than one claiming complete coverage without adversarial testing.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

How to Run Debian 13 and a Local LLM on Apple Silicon Using Apple's Container CLI

A developer has published a technical guide detailing how to set up a Debian 13 virtual machine using Apple's container CLI on an Apple Silicon Mac, while offloading AI inference to the Mac's GPU via Ollama. Because Linux VMs lack direct Metal GPU access, the guide proposes running the application inside the Debian VM while routing model calls to Ollama running on the host macOS system at 192.168.64.1. A key pitfall documented is that the official Debian 13 image lacks /sbin/init, causing the machine to silently fail to boot — a fix involving a custom Dockerfile with systemd-sysv is provided. The setup was tested on an Apple M3 Mac running macOS 27.0 with container runtime 1.4.1 and Ollama 0.33.3, achieving 45.2 tokens per second with the Gemma 4 model loaded entirely on the GPU. Supporting files and configuration tips have been published on GitHub to help others replicate the workflow.

0
ProgrammingDEV Community ·

Solon AI Sandbox Gives Java AI Agents Real OS-Level Filesystem and Network Isolation

Solon AI has released a Java module called solon-ai-sandbox that enforces genuine operating system-level isolation for AI coding agents, rather than relying on prompt instructions. The module is a Java port of Claude Code's sandbox-runtime and works natively on macOS, Linux, and Windows using each platform's built-in sandboxing tools. Unlike container-based solutions, it imposes a narrow security boundary without requiring a container runtime, making it suitable for interactive agents running directly on a developer's machine. Filesystem rules follow opposite defaults for reads and writes — writes are denied by default while reads are permitted unless explicitly restricted — allowing fine-grained control over sensitive paths like SSH keys or cloud credentials. Developers can wrap any agent-issued shell command in a single method call, with platform-specific isolation applied transparently under the hood.

0
ProgrammingDEV Community ·

Six practices to make Playwright email-verification tests reliable and trustworthy

Playwright tests can falsely pass email-verification checks by reading stale or mismatched messages from a shared inbox, making green browser assertions insufficient on their own. A developer and technical co-founder of gettemp.email has outlined six practices to improve test reliability, including creating a fresh short-lived inbox per test run and matching messages by subject to avoid false positives. Tests should poll for email delivery with a fixed interval and deadline, validate extracted URLs strictly against the expected hostname, and delete inboxes in a finally block to ensure cleanup even after failures. Playwright trace artifacts should be treated as sensitive since they may capture addresses and verification URLs. The guidance includes a working code example using the MIT-licensed gettemp-email-testing package at v0.2.0, with a noted defect in its Playwright adapter that users are advised to avoid.

0
ProgrammingDEV Community ·

Four Key Architecture Patterns Shaping Modern AI Agent Design

AI agents are autonomous systems capable of perceiving their environment, making decisions, and executing multi-step tasks using external tools and APIs. Developers currently rely on four main architectural patterns: ReAct, which loops through reasoning and action; Standard Operating Procedure (SOP), which follows predefined decision trees for consistent outcomes; Reflection, where agents self-critique and revise their outputs; and Multi-Agent, where specialized agents collaborate on large-scale tasks. Each pattern suits different use cases, ranging from complex reasoning to repetitive workflows and quality-critical applications. Experts anticipate that future AI agents will feature more advanced planning, better tool integration, and improved memory and collaboration capabilities.

Developer Finds Security Scanner Misses JSON Secrets After Building Deliberate Trick Tests · ShortSingh