惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
B
Blog
P
Proofpoint News Feed
美团技术团队
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
A
About on SuperTechFans
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
有赞技术团队
有赞技术团队
小众软件
小众软件
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
H
Help Net Security
罗磊的独立博客
L
LangChain Blog
GbyAI
GbyAI
腾讯CDC
T
The Blog of Author Tim Ferriss
Microsoft Security Blog
Microsoft Security Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I Built an AI Agent Risk Auditor for Agentic Repositories
James Bridge · 2026-05-17 · via DEV Community

Hermes Guard dashboard overview

What I Built

I built Hermes Guard, a local-first risk auditor for repositories touched by AI agents.

The core question behind the project is simple:

As AI agents start touching real repositories, who audits the agents?

Hermes Guard scans a local repository for risky AI-agent automation patterns and produces evidence-backed Markdown and JSON reports. It also includes a polished React/Vite dashboard for reviewing the scan results.

The MVP focuses on the repo-level files that often shape agent behavior:

  • AGENTS.md instructions.
  • Prompt files.
  • GitHub Actions workflows.
  • MCP server and tool permission config.
  • Shell scripts that run agent-generated commands.
  • Example environment files that normalize unsafe secret handling.

That means Hermes Guard is not trying to inspect only application logic. It is looking at the automation layer around the agent.

For example:

approval_mode: none
allow: "*"

Enter fullscreen mode Exit fullscreen mode

Those two lines are not an application bug. They are an automation risk. They tell a reviewer something important about the repo's agent posture.

Demo

Live demo: https://hermes-guard.vercel.app

The dashboard presents the scan as a security review workspace:

  • A left panel for the scanned repo tree.
  • A center panel for Hermes-style activity.
  • A main panel for risk posture, severity counts, and finding cards.

Hermes Guard risk summary

Hermes Guard finding card

The demo repo is intentionally synthetic and safe. It contains fake credentials only, clearly marked as fake placeholders.

Code

GitHub repo: https://github.com/jbridges82/hermes-guard

The scanner writes:

  • reports/hermes-guard-report.json
  • reports/hermes-guard-report.md

Generated Markdown report

A typical finding includes:

  • ID and title.
  • Severity.
  • File path and line number.
  • Evidence snippet.
  • Why it matters.
  • Recommended fix.

That evidence-first design matters. A reviewer should not have to trust the tool. They should be able to verify the finding immediately.

My Tech Stack

  • React + Vite frontend.
  • Tailwind CSS.
  • Node.js scanner logic.
  • Rule-based risk engine.
  • Local filesystem scanning.
  • Markdown and JSON report output.
  • Vercel deployment for the dashboard.

How I Used Hermes Agent

Hermes Guard is Hermes-inspired and Hermes-ready, but the MVP does not claim live Hermes Agent execution.

I designed the scanner around the kinds of repository risks that matter when an agentic system can plan, use tools, and touch real code. The project includes a clean adapter boundary at:

scanner/hermesAdapter.js

Enter fullscreen mode Exit fullscreen mode

Right now, that adapter clearly reports stub mode:

Hermes Agent runtime is not connected. Hermes Guard is running deterministic local rules only.

Enter fullscreen mode Exit fullscreen mode

That was intentional. I wanted the submission to stay honest: deterministic local scanning works today, and a future Hermes runtime can connect through the adapter without changing the scanner/reporting pipeline.

Safe By Design

Hermes Guard is designed to be safe to run against a repository before any optional agent runtime is connected.

  • Hermes Guard never executes repository code.
  • The scanner is read-only: it walks files, reads text, applies deterministic rules, and writes reports.
  • The architecture is local-first, so repository contents do not need to leave the developer machine.
  • No cloud dependency is required for the MVP.
  • The included demo repo contains intentionally fake credentials only.

What It Detects

The current deterministic rule engine looks for:

  • Fake or exposed API-key-like strings.
  • ignore previous instructions prompt-injection text.
  • Unrestricted shell execution.
  • approval_mode: none.
  • allow: "*" wildcard access.
  • curl or wget piped into a shell.
  • GitHub Actions secrets used with broad agent automation.
  • MCP or tool permission config that appears overly broad.

What I Learned

The interesting part of this project was not writing regular expressions. It was deciding what an "agentic repository" actually means.

A repo is no longer just source code. It can also be a set of permissions, prompts, tools, and automation pathways. Once an agent can act on that repo, those files become part of the system's security boundary.

That boundary needs review.

What I Would Build Next

The next version of Hermes Guard would add:

  • SARIF output for GitHub code scanning.
  • Pull request diff scanning.
  • Rule suppressions with reviewer justification.
  • Live dashboard wiring to the local scanner output.
  • Policy profiles for strict, balanced, and advisory scans.
  • Real Hermes Agent integration through the existing adapter once a runtime is available.

Closing

AI agents make repositories more capable. They also make repositories more complex.

Hermes Guard is a small, local-first step toward making that complexity auditable. It gives developers a way to ask, before the agent acts:

What is this repository allowing an AI agent to do?

That is the question I think every agentic repo will need to answer.