You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

grizzly-sec

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grizzly-sec

Drop-in Express middleware for API documentation, live traffic analysis, and automated security anomaly detection.

1.2.0
latest
Source
npmnpm
Version published
Weekly downloads
18
-81.25%
Maintainers
1
Weekly downloads
 
Created
Source

Grizzly Sec

Grizzly Sec is a drop-in Express middleware that automatically documents your API, monitors live traffic, detects security anomalies, and helps you secure your endpoints with minimal setup.

Features

  • Automatic OpenAPI-style documentation generation based on live traffic
  • Real-time detection of suspicious activity and request anomalies
  • Centralized logging and traffic monitoring
  • Minimal configuration, designed for fast integration into existing Express servers

Installation

npm install grizzly-sec

Quick Start

const express = require('express');
const grizzlySec = require('grizzly-sec');

const app = express();

app.use(grizzlySec({
  apiKey: 'your-api-key', // Required — get this from https://www.grizzly-sec.com
}));

app.get('/api/users/:id', (req, res) => {
  res.json({ id: req.params.id, name: 'John Doe' });
});

app.listen(3000, () => {
  console.log('Server listening on port 3000');
});

Configuration Options

OptionTypeRequiredDescription
apiKeyStringYesYour API key from Grizzly Sec
baseUrlStringNoOverride base URL used in tracking (defaults to inferred from request)
excludedUrlsString[]NoList of route patterns (glob syntax) to exclude from logging and tracking

Example with Exclusions and Custom Base URL

app.use(grizzlySec({
  apiKey: 'your-api-key',
  baseUrl: 'https://mywebsite.com',
  excludedUrls: ['/health', '/internal/**','/api/project/*/docs']
}));

How It Works

Grizzly Sec captures request and response data on every route, calculates payload sizes and response time, and sends the metadata securely to the Grizzly ingestion service. Sensitive headers are redacted, and excluded routes are bypassed for efficiency and privacy.

Privacy & Security

Data Protection: All request and response payloads are automatically censored before transmission. While we preserve the structure and keys of your data, all values are redacted with ***REDACTED*** to ensure no sensitive information is transmitted to our servers.

Header Filtering: Only essential headers (user-agent, content-type, accept) are transmitted in full. All other headers are redacted for privacy.

Liability Disclaimer

Grizzly Sec is provided "as is" without any warranties. We are not liable for any damages, data loss, or security incidents that may occur from the use of this software. Users are responsible for:

  • Ensuring compliance with their own privacy policies and data protection regulations
  • Properly configuring exclusions for sensitive routes
  • Monitoring and validating the security of their own applications
  • Understanding that while we implement privacy measures, users should conduct their own security assessments

The automatic censoring of payloads is a privacy feature but does not guarantee complete data protection. Users should implement additional security measures as appropriate for their specific use cases.

Documentation

For full documentation and feature guides, visit:
https://www.grizzly-sec.com/docs

License

MIT

Author

Created by Rohan Chari
https://github.com/rohan-chari

Keywords

api

FAQs

Package last updated on 13 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts