
Research
/Security News
npm Package Uses Prompt Injection and Token Flooding to Disrupt AI Malware Scanners
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.
fake-schema-cli
Advanced tools
Another CLI for json-schema-faker. With Stdin support.
Based on
npm install -g fake-schema-cli
Usage: fake-schema address.schema.json
Options:
-r, --rootSchema <value> Set root schema from definitions, useful when faking Swagger specs.
-l, --locale [value] Faker locale. Review Faker.js for more details.
-i, --max-items <n> Configure a maximum amount of items to generate in an array. This will override the maximum items found inside a JSON Schema
-m, --max-length <n> Configure a maximum length to allow generating strings for. This will override the maximum length found inside a JSON Schema
-p, --optionals-probability <n> When 0.0, only required properties will be generated; when 1.0, all properties are generated
-y, --yaml YAML input
-h, --help output usage information
fake-schema <file> -y
cat InnerReferences.yaml | fake-schema -y -l es_MX
cat InnerReferences.yaml | fake-schema -y -l es_MX | jq .
http https://json-schema.org/learn/examples/address.schema.json | fake-schema
curl --silent https://json-schema.org/learn/examples/address.schema.json | fake-schema
http https://json-schema.org/learn/examples/address.schema.json | node lib/index.js | jq '.locality|="atoms"'
http https://json-schema.org/learn/examples/address.schema.json | fake-schema | http POST http://bin.org/post
cat InnerReferences.yaml | fake-schema -y -l es_MX > file
The website-jsf is awesome but I just want to write bash script to populate environments,.
#!/usr/bin/env bash
USER_ID=$(http :8080/swagger.yaml | fake-schema -y -r user | http POST :8080/api/user | jq .id)
http :8080/swagger.yaml | fake-schema -y -r purchase | jq "'.user.id|=\"$USER_ID\"'" | http post :8080/api/purchase
FAQs
JSON-Schema-Faker CLI
The npm package fake-schema-cli receives a total of 19 weekly downloads. As such, fake-schema-cli popularity was classified as not popular.
We found that fake-schema-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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 new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.

Product
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.