New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

middlebrick

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

middlebrick

middleBrick CLI — API security scanning from your terminal

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

middlebrick

CLI for middleBrick API security scanning. Scan APIs from your terminal, get risk scores, and gate CI/CD pipelines.

Install

npm install -g middlebrick

Quick Start

# Set up your API key
middlebrick configure

# Scan an API
middlebrick scan https://api.example.com/v1/users

# JSON output for CI
middlebrick scan https://api.example.com/v1/users --format json

# Fail if score < 80
middlebrick scan https://api.example.com/v1/users --threshold 80

Commands

middlebrick scan <url>

Scan an API endpoint and display security results.

FlagDescriptionDefault
--method <METHOD>HTTP methodGET
--format <FORMAT>Output: summary, json, tablesummary
--threshold <score>Exit code 1 if score below threshold
--no-waitReturn scanId immediately

middlebrick results <scanId>

Fetch results of a previous scan.

middlebrick configure

Interactively set up your API key. Saves to ~/.middlebrick/config.json.

Authentication

PrioritySource
1--api-key flag
2MIDDLEBRICK_API_KEY env var
3~/.middlebrick/config.json

Exit Codes

CodeMeaning
0Success
1Scan failed or score below threshold
2Auth/config error

CI/CD

# GitHub Actions
- name: API Security Gate
  run: npx middlebrick scan ${{ env.API_URL }} --threshold 75 --api-key ${{ secrets.MIDDLEBRICK_API_KEY }}

License

MIT — Zevlat Intelligence

FAQs

Package last updated on 16 Mar 2026

Related posts