ASTRANYX
Investigation Engine
Where signals emerge from the dark.
Version 4.0.0a5 · Alpha · Python 3.11+
Quick start · Investigation workflow · Remediation review · Roadmap
Astranyx is a security-analysis framework for reviewing source code, JavaScript bundles, and WordPress plugins.
It combines pattern discovery, data-flow analysis, validation evidence, confidence scoring, attack-surface classification, and reporting—helping analysts separate suspicious behavior from findings with demonstrated security impact.
From source to remediation
flowchart LR
A[Source code & bundles] --> B[Analyze & correlate]
B --> C[Review evidence & confidence]
C --> D[Investigation reports]
D --> E[Compare baseline & retest]
E --> F[Prioritize remediation]
F --> G[Verify fixes]
G --> E
style A fill:#122136,stroke:#65dfcf,color:#e7edf6
style B fill:#122136,stroke:#65dfcf,color:#e7edf6
style C fill:#122136,stroke:#65dfcf,color:#e7edf6
style D fill:#122136,stroke:#65dfcf,color:#e7edf6
style E fill:#123c43,stroke:#65dfcf,color:#e7edf6
style F fill:#123c43,stroke:#65dfcf,color:#e7edf6
style G fill:#123c43,stroke:#65dfcf,color:#e7edf6
See what changed
Synthetic demonstration data. The offline retest dashboard highlights new,
recurring, changed, and regressed findings, with before-and-after evidence.
Findings absent from the current report are labeled Not observed until a
reviewer verifies remediation and equivalent scan coverage.
Core principles
Astranyx follows four operating principles:
- Observe — identify routes, sinks, trust boundaries, and security-relevant patterns.
- Correlate — connect findings with validation routines, data flow, and context.
- Prioritize — rank findings using evidence, confidence, and demonstrated impact.
- Defend — produce actionable reports and remediation guidance.
Astranyx records evidence without assuming that every suspicious response or code pattern is exploitable.
Implemented capabilities
JavaScript analysis
Astranyx can analyze directories containing JavaScript bundles and identify patterns associated with:
- Network requests
- Authentication and OAuth
- GraphQL
- Uploads
- Administrative functionality
- Collaboration features
- Application routes
Results can be written to JSON and associated with an Astranyx investigation workspace.
WordPress plugin analysis
The WordPress scanner includes checks for:
- Public REST routes
- Missing authorization checks
- Dynamic includes
- Deserialization
- SSRF sinks
- SQL queries
- React dangerous sinks
- Upload functionality
- Taint-flow relationships
The analyzer applies nearby validation and safe-pattern evidence to reduce noise.
Analysis framework
The analysis package currently includes:
- Data-flow graphs
- Call graphs
- Trust classification
- Taint analysis
- Validation-routine detection
- Evidence-based finding decisions
- Pluggable analysis stages
- A default evidence-analysis pipeline
Evidence gate
The evidence gate rejects findings that lack observable security impact.
Current decision categories include:
| Category |
Required evidence |
| PII disclosure |
A non-empty sensitive value |
| CRLF/header injection |
A separate injected response header |
| Open redirect |
A final destination outside trusted domains |
| CORS |
Cross-origin access to authenticated sensitive data |
| HTTP 500 |
Data exposure, authorization impact, stack disclosure, or measurable availability impact |
| GraphQL |
Unauthorized protected data |
| Health endpoint |
Sensitive operational data rather than status alone |
A successful query, wildcard CORS header, generic server error, or public health response is not automatically considered reportable.
Reporting
Astranyx contains support for:
- HTML
- Markdown
- JSON
- CSV
- SARIF
- Source previews
- Confidence summaries
- Risk summaries
- Attack-surface classification
Finding JSON uses a versioned schema distributed with the package. Each finding
has an asx- fingerprint derived from its category, relative file path, and
normalized evidence. The identity remains stable when a checkout moves or line
numbers change, supporting baseline and retest workflows. SARIF exports
carry the same identity in partialFingerprints.
Requirements
- Python 3.11 or newer
- Linux, macOS, or another Python-compatible environment
- A virtual environment is recommended
The core engine has no third-party runtime dependencies. Optional iOS collection
and telemetry integrations are available as extras:
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e .
# Optional: python -m pip install -e '.[ios]'
# Optional: python -m pip install -e '.[telemetry]'
For development and testing:
python -m pip install -e '.[dev]'
Command-line interface
Show available commands:
python -m astranyx.cli --help
Analyze JavaScript
python -m astranyx.cli js analyze ./path/to/javascript
Write the report to a specific file:
python -m astranyx.cli js analyze ./path/to/javascript \
--output report.json
Recursively discover JavaScript files in nested directories:
python -m astranyx.cli js analyze ./path/to/javascript \
--recursive \
--output report.json
Recursive reports preserve paths relative to the analysis root, such as assets/js/app.js.
Associate results with an investigation:
python -m astranyx.cli js analyze ./path/to/javascript \
--investigation investigations/INV-YYYYMMDD-HHMMSS
Audit a WordPress plugin
python -m astranyx.cli wordpress ./path/to/plugin
Only analyze plugins and code that you own or are authorized to assess.
For PHP plugins, Astranyx also builds a conservative interprocedural model of
explicit assignments, function arguments, returns, and security-sensitive
sinks. Confirmed cross-file paths include every traversed file and line. The
engine does not guess between ambiguous function names, limits traversal depth
and path count, and treats only explicitly identified sanitizers as flow
barriers. Cross-file results remain needs_validation until a tester reviews
the complete path.
Correlate and validate attack paths
Astranyx can correlate evidence-backed source-to-sink paths, turn them into
non-executing validation plans, and manage an approval-gated validation
workflow with sealed, redacted evidence:
astranyx graph correlate graph.json --output paths.json
astranyx validation plan paths.json --output plans.json
astranyx workflow create plans.json validation-workspace --actor analyst
astranyx evidence verify evidence-bundle
The default analysis pipeline also accepts explicit authorization policies and
effective access paths. It reports a differential when an alternate route
reaches the same asset operation without a required authentication,
capability, role, ownership, tenant, or object-state control. Extractors must
provide evidence that a control actually guards the operation; a nearby
authorization-looking call is not treated as enforcement.
Rules of engagement can be validated and queried without sending a request:
astranyx engagement validate engagement.json
astranyx engagement authorize engagement.json https://example.test/path
Third-party plugins require a signed manifest and execute only through the
fail-closed Linux isolation backend. Run astranyx plugin doctor before use.
Run a complete assessment
Import, normalize, review, seal, and verify a mobile assessment with one command:
astranyx assess mobsf-report.json \
--output assessments/example \
--client "Example Corporation" \
--consultant "Security Assessment Team"
Imported findings default to needs_validation; Astranyx never silently labels
scanner output as confirmed. Optional tester decisions are supplied in a local
JSON file keyed by stable finding fingerprint:
{
"schema_version": 1,
"reviews": {
"asx-example": {
"state": "confirmed",
"note": "Reproduced during authorized testing.",
"cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
}
}
Allowed states are confirmed, needs_validation, rejected, accepted_risk,
and not_tested. Unknown fingerprints and invalid states fail closed. The
command reports success only after verifying every generated artifact against
the assessment manifest. Every assessment also includes
reviews.template.json, containing the exact fingerprints from that run. Copy
the template outside the sealed bundle, edit the copy's states and notes, then
pass the copy to a new assessment with --review-file. Editing the original
template inside the bundle intentionally invalidates its integrity manifest.
Findings include OWASP MASVS v2.1 mappings. Exact controls supplied by upstream
evidence are marked upstream; conservative keyword mappings identify only a
broad control group and are marked inferred. Unmapped findings remain explicit
rather than being assigned a fabricated compliance control.
Confirmed findings may include a CVSS v3.1 base vector in the tester review.
Astranyx validates every required metric, calculates the score and qualitative
rating, records manual provenance, and exports the result to JSON, CSV, SARIF,
and both dashboards. Missing vectors remain explicitly unassessed. Report
summaries show scoring coverage and count disagreements between analyzer
severity and CVSS so a tester can resolve them instead of silently trusting
either source.
Import a MobSF mobile assessment
Normalize an existing MobSF static-analysis JSON report into Astranyx HTML,
JSON, CSV, and SARIF artifacts:
astranyx import mobsf mobsf-report.json --output reports/mobile-assessment
Add client-facing report information when preparing a deliverable:
astranyx import mobsf mobsf-report.json \
--output reports/mobile-assessment \
--client "Example Corporation" \
--consultant "Security Assessment Team" \
--assessment-title "Mobile Application Security Assessment"
The importer accepts Android and iOS report metadata, normalizes code and
manifest findings, removes embedded markup, constrains untrusted paths and text,
deduplicates stable finding fingerprints, and excludes MobSF checks marked as
secure. Input files are processed locally and limited to 50 MiB.
Compare a baseline and retest
Compare two normalized Astranyx finding reports:
astranyx retest baseline/findings.json current/findings.json \
--output reports/retest
The sealed retest bundle classifies findings as new, fixed, persistent, changed,
or regressed. It contains machine-readable JSON, a client-readable Markdown
summary, an offline HTML dashboard (index.html), and a SHA-256 artifact manifest
covering all three reports. Open reports/retest/index.html in your browser to
filter outcomes, search findings, and inspect before-and-after evidence.
The dashboard labels the JSON fixed category Not observed: absence alone
does not verify a fix. Confirm equivalent scan coverage before closing a finding.
Review guidance is provided per outcome; owner assignment and persisted review
history are not yet part of this dashboard.
Run an investigation
Create an empty workspace with default metadata:
astranyx investigate
Run automatic local-target detection and the compatible analyzers:
astranyx investigate ./path/to/authorized-target
Choose the complete local web profile and identify the analyst:
astranyx investigate /path/to/authorized-target \
--profile web \
--analyst "Jonathan Mendiola"
Available profiles are auto, web, javascript, and wordpress. Recursive
discovery is enabled by default and can be disabled with --no-recursive.
--target remains available as a compatibility alias for the positional path.
The command creates a timestamped workspace containing directories for analysis,
API evidence, HTML, JavaScript, logs, notes, reports, and screenshots. With a
target, Astranyx runs each selected analyzer, isolates module failures, updates
metadata.json, and writes manifest.json with SHA-256 hashes for every generated
analysis and report artifact.
Normalized findings from completed modules are combined in
analysis/findings.json. Astranyx removes only observations that share both a
stable fingerprint and matching security identity, records every contributing
module, and retains the strongest severity and confidence evidence. Conflicting
records that claim the same fingerprint are preserved and marked as collisions.
JavaScript discovery signals are not promoted to vulnerabilities solely to make
them eligible for deduplication.
Astranyx also writes analysis/evidence-graph.json, a deterministic graph that
links each contributing analyzer to its findings, each finding to its source
file, and supporting evidence to the findings it substantiates. Fingerprint
collisions remain separate graph nodes, and shared evidence is represented once.
Every checkpoint includes a self-contained investigation dashboard at
html/index.html. It summarizes analyzer status, severity counts, evidence-graph
coverage, deduplication results, and searchable normalized findings without
requiring a web server or external assets.
Investigation analyzers are selected through a validated registry rather than
hard-coded orchestration branches. Extensions declare a stable name, supported
profiles, file discovery patterns, and a runner accepting AnalyzerContext.
Passing a custom AnalyzerRegistry to the Python run() or resume() API keeps
module failure isolation, metadata updates, checkpoints, and artifact sealing.
Each analyzer completion also updates the sealed checkpoint. Resume a partial,
failed, or interrupted investigation without repeating successful modules:
astranyx investigate --resume investigations/INV-YYYYMMDD-HHMMSS
Astranyx verifies the existing artifact seal before resuming, retries only
unfinished or failed modules, and records the resume in metadata.json. A
different positional target may be supplied only when it resolves to the target
already recorded by the workspace.
Verify every sealed artifact before sharing or resuming an investigation:
astranyx verify investigations/INV-YYYYMMDD-HHMMSS
The command checks the recorded size and SHA-256 digest of every artifact and
returns a non-zero exit status for missing, modified, duplicated, or unsafe
artifact paths. Its JSON output can be retained as chain-of-custody evidence or
consumed by CI automation.
Choose a different workspace parent directory when needed:
astranyx investigate ./authorized-target \
--workspace-root ./casework
Collect read-only iOS evidence
Astranyx can use an optional pymobiledevice3 installation to inventory a
trusted, USB-connected iPhone without changing device state. First create an
isolated environment with iOS support, create an investigation, and verify the
collector:
python -m pip install -e '.[ios]'
astranyx investigate
astranyx device doctor
Collect a privacy-redacted snapshot inside that investigation:
astranyx device snapshot \
--investigation investigations/INV-YYYYMMDD-HHMMSS
Snapshots include device/build information, installed application metadata,
collection timestamps, and a SHA-256 manifest. Serial numbers, UDIDs, phone
numbers, Apple Account identifiers, and similar identifiers are replaced with
stable redaction tokens. Raw device output is not retained.
Compare two snapshots locally: