Scan your whole stack
From OX Research Newsroom
Are you using @tensorjetai/saml-chaos-lab?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.3
@tensorjetai/saml-chaos-lab was last scanned on 18 Nov 2026 at version 0.1.3. Risk score 45 of 100 (medium). High-severity rules fired.
| Version | Published | Status |
|---|---|---|
| 0.1.3 LATEST | 18 Nov 2026 | 1 rule fired |
| 0.1.2 | 16 Nov 2026 | 1 rule fired |
| 0.1.1 | 13 Nov 2026 | 1 rule fired |
| 0.1.0 | 13 Nov 2026 | Not shown |
| 0.0.0-stage | 13 Nov 2026 | Not shown |
Findings for v0.1.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
A DNS lookup command (nslookup, dig or host) takes its query name from a subshell that first encodes the data, for example with base64 or xxd. Encoding the name turns a lookup into a way to send data to the nameserver of the queried domain. Ordinary diagnostic lookups have no encoding step.
HIGHThe score describes 0.1.3; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Deterministic open-core SAML 2.0 fault-injection runner for staging and CI Service Providers.
saml-chaos-lab spins up a signed, ephemeral SAML 2.0 Identity Provider locally, drives a real Chromium browser through your Service Provider's SSO login flow, and injects malformed or tampered assertions directly into your Assertion Consumer Service (ACS) to prove your SP fails closed before production rollouts.
Official npm packages:
saml-chaos-lab(npm) and@tensorjetai/saml-chaos-lab(npm).
Because saml-chaos-lab drives real Chromium redirects, HTTP POST bindings, and session cookies to verify what your Service Provider actually accepts in a browser, install Playwright Chromium once on your machine or CI runner before running test:
# 1. Install Playwright Chromium (one-time per machine/runner)
npx playwright install chromium
# 2. Generate ephemeral IdP keys, local runner state (.saml-chaos-lab/), and SAML metadata
npx saml-chaos-lab metadata --out ./idp-metadata.xml
# 3. Upload ./idp-metadata.xml to your staging/local Service Provider, then run baseline checks
npx saml-chaos-lab test \
--login-url http://127.0.0.1:4000/sso/login \
--acs-url http://127.0.0.1:4000/saml/acs \
--sp-entity-id urn:example:staging-sp \
--success-url "^http://127\\.0\\.0\\.1:4000/app$" \
--fail-on high
You can also invoke the org-scoped package alias directly:
npx @tensorjetai/saml-chaos-lab --help
Standard integration suites only verify that a valid signed login redirects to /dashboard. They rarely prove what happens when an attacker tampers with assertions in flight or reuses mis-scoped responses:
SAML-TIME-001): Service Providers that ignore <Conditions NotOnOrAfter="..."> accept captured assertions indefinitely after they expire.SAML-AUD-001): Without strict <Audience> matching against your SP Entity ID, assertions minted for another application integrated with the same IdP can authenticate into yours.SAML-DEST-001): Accepting responses with mismatched Destination attributes enables assertion replay across endpoints or environments.SAML-ISS-001): Skipping strict <Issuer> pinning allows multi-tenant or shared IdP issuers to spoof trust.SAML-SIG-001): Parsing XML attributes before validating XMLDSIG integrity or digest references lets attackers alter NameID values inside previously signed payloads.127.0.0.1 via Fastify, emits standard SAML 2.0 metadata XML (idp-metadata.xml), and tears down automatically after each run.RelayState, ACS POST forms, session cookies, and post-login DOM selectors are verified end-to-end.SAML-BASE-001 first; if baseline login itself fails or redirects off-origin, remaining fault injections do not mask a broken test setup.(project, run, scenario, browserSessionId).stdout and automatically appends it to $GITHUB_STEP_SUMMARY when running inside GitHub Actions.saml-chaos-lab metadataGenerates an ephemeral current and next X.509 certificate pair, reserves a local ephemeral port on 127.0.0.1, writes runner state under --state-dir (mode 0600), and outputs standard IdP EntityDescriptor XML for your Service Provider configuration.
npx saml-chaos-lab metadata --out ./idp-metadata.xml
| Option | Required | Default | Description |
|---|---|---|---|
--out <file> |
No | ./idp-metadata.xml |
Destination file path for generated SAML 2.0 IdP metadata XML. |
--state-dir <dir> |
No | .saml-chaos-lab |
Directory where ephemeral port and signing state (runner.json) are stored. |
saml-chaos-lab testReads runner state created by metadata, starts the ephemeral IdP on 127.0.0.1, launches headless Chromium, and executes all 6 open-core baseline scenarios sequentially.
npx saml-chaos-lab test \
--login-url http://127.0.0.1:4000/sso/login \
--acs-url http://127.0.0.1:4000/saml/acs \
--sp-entity-id urn:example:staging-sp \
--success-url "^http://127\\.0\\.0\\.1:4000/app$" \
--dom-selector "[data-testid='authenticated-user']" \
--fail-on high
| Option | Required | Default | Description |
|---|---|---|---|
--login-url <url> |
Yes | — | SP login entry URL that initiates SAML AuthnRequest redirects. |
--acs-url <url> |
Yes | — | SP Assertion Consumer Service endpoint expecting POST SAML responses. |
--sp-entity-id <id> |
Yes | — | Expected Service Provider EntityID / Audience URI. |
--success-url <pattern> |
Yes | — | Regular expression matching the post-login authenticated URL (evaluated safely). |
--dom-selector <css> |
No | — | Optional CSS selector required to appear after a successful login. |
--failure-url <pattern> |
No | //saml/error(?:?|$)/ | Regular expression matching explicit SP SSO rejection URLs. |
--sign-mode <mode> |
No | assertion |
Signed XML scope: assertion, response, or both. |
--fail-on <level> |
No | high |
Exit with code 1 if any failed scenario meets high or critical. |
--state-dir <dir> |
No | .saml-chaos-lab |
State directory created by saml-chaos-lab metadata. |
| Code | Meaning |
|---|---|
0 |
Valid baseline succeeded and all negative baseline attacks were properly rejected by the SP. |
1 |
One or more negative security checks failed (the SP accepted an invalid/tampered assertion) at or above --fail-on. |
2 |
Invalid arguments, missing metadata state, target blocked/unreachable, broken baseline (SAML-BASE-001), or inconclusive execution. |
| Scenario ID | Scenario Name | Expected SP Outcome | Severity | Remediation Guidance |
|---|---|---|---|---|
SAML-BASE-001 |
Valid baseline response | accept |
Info | Verify valid SAML login succeeds before running fault injections. |
SAML-TIME-001 |
Expired assertion | reject |
Critical | Enforce <Conditions NotOnOrAfter> with documented bounded clock skew. |
SAML-AUD-001 |
Wrong audience | reject |
Critical | Match <Audience> strictly to your configured SP Entity ID. |
SAML-DEST-001 |
Wrong response destination | reject |
Critical | Match Response/@Destination strictly to your ACS URL. |
SAML-ISS-001 |
Wrong issuer | reject |
Critical | Pin and verify trusted IdP <Issuer> values strictly. |
SAML-SIG-001 |
Post-signature mutation | reject |
Critical | Validate XML signature and digest reference integrity before consuming assertion attributes or NameID. |
Gate pull requests in GitHub Actions against your local or ephemeral staging SP:
name: SAML Chaos Lab Baseline
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
saml-baseline:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Playwright Chromium
run: npx --yes playwright@1.61.1 install --with-deps chromium
- name: Provision IdP Metadata & Start Test SP
run: |
npx --yes saml-chaos-lab@0.1.3 metadata --out ./idp-metadata.xml
# Start your SP configured with ./idp-metadata.xml in the background
- name: Run Baseline SAML Security Checks
run: |
npx --yes saml-chaos-lab@0.1.3 test \
--login-url http://127.0.0.1:4000/sso/login \
--acs-url http://127.0.0.1:4000/saml/acs \
--sp-entity-id urn:example:staging-sp \
--success-url "^http://127\\.0\\.0\\.1:4000/app$" \
--fail-on high
Prefer running without installing Chromium on the host? Use the Apache-2.0 Dockerfile.runner or composite GitHub Action from the source repository.
| Capability | Open-Core CLI (saml-chaos-lab on npm) |
Commercial Container (registry.tensorjetai.com/saml-chaos-lab-commercial) |
|---|---|---|
| License | Apache-2.0 |
Commercial License (UNLICENSED, offline Ed25519 TJ_LICENSE_KEY) |
| Baseline Hygiene Suite (6 checks) | Included (SAML-BASE-001, TIME-001, AUD-001, DEST-001, ISS-001, SIG-001) |
Included |
| XML Signature Wrapping (XSW 1–10) | — | Included (SAML-XSW-001 .. SAML-XSW-010) |
| C14N Comment/PI/Void Canonicalization | — | Included (SAML-C14N-001 .. SAML-C14N-003) |
| Differential Parser, Role & DTD/XXE/XSLT Probes | — | Included (SAML-DIFF-*, SAML-ATTR-001, SAML-XML-*) |
| Replay, KeyInfo/SHA-1 Downgrade, Rollover & Binding Checks | — | Included (SAML-REPLAY-001, TIME-*, CERT-*, SIG-002..004, FLOW-*) |
| Audit Reports & Artifact Integrity | Stdout & GitHub Step Summary Markdown | SHA-256 Tamper-Evident JSON, Self-Contained HTML, SARIF 2.1.0 |
| Distribution | npx saml-chaos-lab |
Multi-arch (amd64/arm64) hardened Docker image with bundled Chromium |
Pull the commercial edition after checkout at saml.tensorjetai.com:
echo "$TJ_LICENSE_KEY" | docker login registry.tensorjetai.com -u license --password-stdin
docker pull registry.tensorjetai.com/saml-chaos-lab-commercial:0.1.3
synthetic-user@invalid.example), never real workforce credentials.@tensorjetai/saml-chaos-labApache-2.0 © 2026 TensorJetAI
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.