
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
github.com/tmc/misc/haranalyzer
HAR Analyzer is a powerful command-line tool for analyzing HTTP Archive (HAR) files with advanced filtering capabilities. It allows you to process large HAR files, apply complex filters, and generate insightful summaries of network activity.
git clone https://github.com/tmc/haranalyzer.git
cd haranalyzer
go build
haranalyzer [flags]
-i, --input string
: Input HAR file (required)-o, --output string
: Output format (text, json, csv) (default "text")-s, --sort string
: Sort entries by (time, size, status, url) (default "time")-c, --chunk int
: Chunk size for analysis (default 100)-q, --query string
: Query string for filtering-a, --ai
: Perform AI analysis--anthropic-key string
: Anthropic API keyBasic usage:
./haranalyzer -i example.har
Use JSON output and sort by response size:
./haranalyzer -i example.har -o json -s size
Apply a complex filter:
./haranalyzer -i example.har -q "method:GET AND status:200-299 AND time>1000"
Perform AI analysis (requires Anthropic API key):
./haranalyzer -i example.har -a --anthropic-key YOUR_API_KEY
The query language allows you to create complex filters using the following syntax:
key:value
: Exact match (e.g., method:GET
)key:value1-value2
: Range match (e.g., status:200-299
)key>value
or key<value
: Greater than or less than (e.g., time>1000
)key~value
: Contains match (e.g., url~example.com
)key/regex/
: Regular expression match (e.g., `url/^https://api./)You can combine multiple conditions using AND
and OR
operators.
Example complex query:
method:GET AND status:200-299 AND time>1000 AND (url~example.com OR url/^https:\/\/api\./)
This query filters for GET requests with status codes between 200 and 299, response times greater than 1000ms, and URLs that either contain "example.com" or match the regex ^https:\/\/api\.
.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
Unknown package
Did you know?
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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.