Skip to content

πŸ” GitHub Action for isnad-scan β€” security scanner for AI agent skills

Notifications You must be signed in to change notification settings

counterspec/isnad-scan-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” ISNAD Scan Action

Security scanner for AI agent skills. Detect dangerous patterns before they reach production.

ISNAD Protocol

Features

  • πŸ›‘οΈ 69+ detection patterns β€” shell injection, credential theft, filesystem access, network exfiltration
  • ⚑ Fast β€” scans in seconds, not minutes
  • πŸ”§ Configurable β€” fail on WARN, DANGER, or never
  • πŸ“Š Rich output β€” detailed findings with line numbers

Quick Start

name: Security Scan

on: [push, pull_request]

jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: counterspec/isnad-scan-action@v1
        with:
          path: './skills'
          fail-on: 'DANGER'

Inputs

Input Description Default
path Path to scan .
fail-on Fail on trust level (WARN, DANGER, never) DANGER
verbose Show verbose output false

Outputs

Output Description
trust-level Result: SAFE, WARN, or DANGER
findings-count Number of security findings
report Full scan report

Example: Comment on PR

- uses: counterspec/isnad-scan-action@v1
  id: scan
  with:
    path: './skills'
    fail-on: 'never'  # Don't fail, just report

- name: Comment on PR
  if: github.event_name == 'pull_request'
  uses: actions/github-script@v7
  with:
    script: |
      const trustLevel = '${{ steps.scan.outputs.trust-level }}';
      const emoji = trustLevel === 'SAFE' ? 'βœ…' : trustLevel === 'WARN' ? '⚠️' : '🚨';
      
      github.rest.issues.createComment({
        owner: context.repo.owner,
        repo: context.repo.repo,
        issue_number: context.issue.number,
        body: `## ${emoji} ISNAD Security Scan\n\n**Trust Level:** ${trustLevel}\n**Findings:** ${{ steps.scan.outputs.findings-count }}\n\n\`\`\`\n${{ steps.scan.outputs.report }}\n\`\`\``
      });

Trust Levels

Level Description
βœ… SAFE No concerning patterns detected
⚠️ WARN Patterns that need review (env access, file writes)
🚨 DANGER High-risk patterns (shell exec, credential access, network calls)

Links


Built by ISNAD Protocol β€” Trust infrastructure for AI agents.

About

πŸ” GitHub Action for isnad-scan β€” security scanner for AI agent skills

Resources

Stars

Watchers

Forks

Packages