npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

salus-appsec

v1.0.16

Published

Salus — CLI de AppSec com IA. Code review, análise de vulnerabilidades, hardening defensivo e auditoria AI/LLM. Modo BYOK (Bring Your Own Key).

Readme


Sobre

Salus é um CLI de segurança de aplicações com inteligência artificial.
Ele escaneia seu projeto, envia o contexto estruturado para uma LLM (BYOK — Bring Your Own Key), gera um relatório completo de vulnerabilidades e aplica correções automaticamente sem alterar suas regras de negócio.

Seis motores de análise em uma ferramenta:

| Modo | Comando | Foco | |------|---------|------| | Vulnerability Scanner | salus analyze | OWASP Top 10, CVEs, CVSS 4.0, EPSS, CISA KEV, SBOM + VEX, Reachability | | Red Team | salus redteam | Kill chain, MITRE ATT&CK, pontos de injeção, lateral movement, privilege escalation | | Blue Team | salus harden | Defense-in-depth, CIS Benchmarks, security headers, rate limiting, hardening cripto | | AI/LLM Security | salus aisec | OWASP LLM Top 10 2025, prompt injection, RAG, segurança de agentes/MCP | | Web Security | salus websec | OWASP Top 10 2021, SQLi, XSS, SSRF, SSTI, auth bypass, payment bypass |


Instalação

npm install -g salus-appsec

Pré-requisitos: Node.js ≥ 20.


Configuração (BYOK)

Salus suporta 3 provedores de LLM — escolha o seu:

| Provedor | Prefixo | Modelo Padrão | |----------|---------|---------------| | OpenAI | sk-proj-... | gpt-5.5-pro | | Anthropic | sk-ant-... | claude-4-8-opus-latest | | OpenRouter | sk-or-... | Selecionável pelo usuário (ex: anthropic/claude-4.8-opus, google/gemini-2.5-pro, meta-llama/llama-4-70b-instruct) |

A chave é armazenada em ~/.salus/config.json com permissões restritas (0700/0600).

salus config

Suporte a variáveis de ambiente para CI/CD:

export SALUS_OPENAI_API_KEY="sk-..."
export SALUS_OPENAI_MODEL="gpt-4o"

Como usar

Terminal interativo (REPL)

salus

Isso abre um prompt contínuo onde você pode digitar comandos:

salus › /analyze    # varredura de vulnerabilidades
salus › /redteam    # análise ofensiva
salus › /harden     # hardening defensivo
salus › /aisec      # auditoria AI/LLM
salus › /websec     # segurança web/API
salus › /config     # configurar provedor + API Key
salus › /help       # ajuda
salus › /exit       # sair

Comandos diretos

salus analyze              # Varredura OWASP + CVSS + EPSS + KEV
salus redteam              # Análise Red Team (kill chain, ATT&CK)
salus harden               # Hardening Blue Team (defense-in-depth)
salus aisec                # Auditoria AI/LLM (OWASP LLM Top 10)
salus websec               # Segurança web/API (OWASP, SQLi, XSS, SSRF)

Saída

Cada comando gera um relatório Markdown na raiz do projeto:

analyze  →  security-report.md
redteam  →  red-team-report.md
harden   →  defense-hardening-report.md
aisec    →  ai-security-report.md
websec   →  web-security-report.md

Features

Vulnerability Scanner

  • OWASP Top 10 completo com CVSS 4.0/3.1 e vector strings
  • EPSS (Exploit Prediction Scoring System) + catálogo CISA KEV
  • SBOM + VEX — software bill of materials com statements affected / not_affected / fixed
  • Reachability Analysis — a função vulnerável é realmente chamada?
  • Auditoria de dependências (package.json, requirements.txt, go.mod, pom.xml, Cargo.toml)
  • Revisão de config: Nginx, SSH, Docker, Kubernetes com CIS Benchmarks

Red Team

  • Kill chain completa (11 fases) com MITRE ATT&CK mapping
  • Pontos de injeção, auth bypass, SSRF, RCE, IDOR, race conditions
  • Lateral movement, privilege escalation, defense evasion, falhas de OPSEC
  • AD attack paths, exploração de cloud/metadata

Blue Team

  • Defense-in-depth (6 camadas): perímetro → aplicação → auth → dados → infra → observabilidade
  • CIS Benchmarks para Node.js, Nginx, Docker, Kubernetes, PostgreSQL
  • Security headers (CSP, HSTS, X-Frame-Options), rate limiting, MFA
  • Password hashing (bcrypt/argon2), TLS 1.3, container hardening
  • Logging estruturado, audit trail, gerenciamento de secrets

AI/LLM Security

  • OWASP Top 10 for LLM Applications (2025) + MITRE ATLAS
  • Prompt injection (direto, indireto, encoding, multi-turn, crescendo)
  • Segurança de RAG/vector store, agentes e tools (MCP)
  • Model supply chain (pickle/safetensors), guardrails & output handling

Web Security

  • OWASP Top 10 (2021) — A01 a A10 com mapeamento CWE
  • SQL Injection, XSS (por contexto), Command Injection, SSRF, SSTI por engine
  • Segurança de API: BOLA/IDOR, mass assignment, GraphQL, ataques JWT
  • Bypass de autenticação, falhas de sessão, revisão OAuth/OIDC
  • Bypass de pagamento: race conditions, manipulação de preço, abuso de cupons
  • CORS/CSP/Security Headers: configurações incorretas

Auto-Fix Anti-Alucinação

Salus é a única CLI com motor anti-alucinação dedicado. Antes de aplicar qualquer correção:

  1. Re-lê todo o código-fonte para contexto completo
  2. Valida que o código vulnerável existe textualmente no arquivo
  3. Classifica cada finding como FIXED, FALSE_POSITIVE ou NEEDS_MANUAL_REVIEW
  4. Gera a menor alteração possível que elimina a vulnerabilidade
  5. Preserva 100% da lógica de negócio, comentários e estilo do código
  • Backup automático antes de cada patch (~/.salus/backups/)
  • Substituição de múltiplas ocorrências (replaceAll)
  • Validação de schema do output da IA + detecção de padrões perigosos
  • Disclaimer pré-fix: ⚠ FAÇA BACKUP ANTES DO AUTO-FIX

Segurança do próprio Salus

O Salus foi auditado com... o próprio Salus. Todos os motores de análise foram aplicados ao código-fonte da ferramenta e as correções foram implementadas:

  • Anti prompt-injection em todos os system prompts
  • Validação de schema no output da IA
  • Redação de secrets em logs e auditoria
  • Boundary demarcation (<CODE_ANALYSIS_BOUNDARY>) no input da LLM
  • Permissões restritas no config (0700/0600)
  • Limites de contexto no scanner
  • Tracking de tokens e estimativa de custo

Contribuindo

git clone https://github.com/155157171/salus-appsec
cd salus-appsec
npm install
npm run build
node dist/index.js

Licença

MIT © Salus AppSec