Download the PHP package librevlad/basilisk without Composer

On this page you can find all versions of the php package librevlad/basilisk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package basilisk

Basilisk

Professional modular security framework for autonomous reconnaissance, analysis, and pentesting.

188 auto-discovered plugins across 10 categories, all wrapped as v4 Scenarios. Unified autonomous engine with knowledge graph, deterministic decision traces, cognitive reasoning, and persistent campaign memory. Rich live visualization with real-time progress tracking. Training validation benchmarked against 20 vulnerable containers (298 expected findings) with ~97% guided validation coverage.

Quick Start

Architecture Overview

Autonomous Engine

The autonomous engine builds a knowledge graph about the target and iteratively discovers knowledge gaps, selects optimal plugins to fill them, executes them, and merges results back into the graph. Each decision is recorded with full context for reproducibility.

Cycle: find gaps -> match capabilities -> score -> decide -> execute -> observe -> merge -> hypothesize -> revise beliefs -> repeat

Terminates when:


Knowledge Graph

Central world model storing all information about audit targets. 9 typed entity types and 11 relation types form a graph that grows with each autonomous cycle iteration.

9 Entity Types

EntityType Description Key Fields Factory
HOST Domain or IP host Entity.host("example.com")
SERVICE Port + protocol host, port, protocol Entity.service("example.com", 443, "tcp")
ENDPOINT URL path host, path Entity.endpoint("example.com", "/api/v1")
TECHNOLOGY Software + version host, name, version Entity.technology("example.com", "nginx", "1.24")
CREDENTIAL Discovered creds host, username Entity.credential("example.com", "admin")
FINDING Security issue host, title Entity.finding("example.com", "Missing HSTS")
VULNERABILITY Known CVE host, name Entity.vulnerability("example.com", "CVE-2024-1234")
CONTAINER Docker/K8s container host, container_id Entity.container("example.com", "abc123")
IMAGE Container image host, image_name, image_tag Entity.image("example.com", "nginx", "1.24")

11 Relation Types

Relation Direction Meaning
EXPOSES HOST -> SERVICE Host exposes a network service
RUNS SERVICE -> TECHNOLOGY Service runs software
HAS_ENDPOINT SERVICE -> ENDPOINT Service has URL endpoint
HAS_VULNERABILITY TECHNOLOGY -> VULNERABILITY Software has known CVE
ACCESSES CREDENTIAL -> HOST Credential grants access
RELATES_TO FINDING -> any Finding relates to entity
PARENT_OF HOST -> HOST Domain is parent of subdomain
RUNS_CONTAINER TECHNOLOGY -> CONTAINER Runtime runs container
USES_IMAGE CONTAINER -> IMAGE Container uses image
SUPPORTED_BY ENTITY -> HYPOTHESIS Evidence supports hypothesis
DISPROVED_BY ENTITY -> HYPOTHESIS Evidence contradicts hypothesis

Deterministic IDs and Deduplication

Entity IDs are SHA256 hashes of key fields — identical inputs always produce the same ID. When a plugin produces an entity with an existing ID, it's merged instead of duplicated:

Persistence

Knowledge graph persists to SQLite via KnowledgeStore (tables: kg_entities, kg_relations). Decision history persists to decision_history.json.


Gap Detection (Planner)

The Planner examines the knowledge graph and identifies 18 types of knowledge gaps:

# Gap Priority Condition
1 services 10.0 Host without services
2 dns 8.0 Host without DNS records
3 technology 7.0 HTTP host without tech detection
4 endpoints 6.0 HTTP host without endpoints
5 forms 5.5 Endpoints without form analysis
6 vulnerability_testing 5.0 Endpoints with params untested
7 host_vulnerability_testing 4.5 HTTP host needs pentesting
8 service_exploitation 6.5 Non-HTTP service untested
9 credential_exploitation 7.5 Credentials found, not exploited
10 version 4.0 Technology without version
11 confirmation 3.0 Low confidence entity (<0.5)
12 finding_verification 6.0 HIGH/CRITICAL finding, confidence < 0.95
13 container_runtime 6.0 Host with Docker/K8s ports
14 container_enumeration 7.0 Container runtime without enumeration
15 container_config_audit 5.5 Container without config audit
16 image_analysis 5.0 Image without vulnerability check
17 attack_path path.risk Attack path preconditions met
18 hypothesis_validation 5.5 Active hypothesis with uncertain confidence

Capabilities and Scoring

Capability Model

Each plugin maps to a Capability with 4 action types:

ActionType Categories Purpose
ENUMERATION recon, scanning Discover new entities
EXPERIMENT analysis, pentesting Test hypotheses
EXPLOIT exploitation, lateral, privesc Needs confirmed vulnerability
VERIFICATION any with reduces_uncertainty Re-test to confirm/reject findings

145 plugins explicitly mapped in CAPABILITY_MAP. The rest use auto-inference from PluginMeta/ScenarioMeta.

Scoring Formula

Component Purpose
novelty Prefer unexplored entities
knowledge_gain Prefer low-confidence targets
success_prob Goal-based success probability
unlock_value Reward capabilities opening attack paths
prior_bonus Campaign-aware known infrastructure bonus
hypothesis_gain Reward plugins that resolve hypotheses
action_type_bonus Context-dependent action preference
gap_boost Multiplier from gap priority
cost Penalize expensive plugins (campaign/tracker adjusted)
noise Penalize noisy/detectable plugins
repetition_penalty Adaptive penalty from decision history

Cognitive Reasoning

Deterministic reasoning primitives over the knowledge graph. No AI/LLM — pure pattern logic.

Hypothesis Engine

Generates testable hypotheses from 5 pattern detectors:

Detector Trigger Hypothesis
Shared Stack Same tech on 2+ hosts Organization standardizes on X
Service Identity Non-standard port without tech Port N likely runs X
Systematic Vuln 3+ findings of same type Systematic vulnerability in category X
Unverified Finding HIGH/CRITICAL, confidence < 0.7 Vulnerability may exist in X
Framework Pattern Endpoint paths match known framework Target uses WordPress/Laravel/etc

Evidence Aggregator

Belief revision based on source-family independence (6 families: dns, network_scan, http_probe, exploit, config_leak, verification).


Container Security Audit

Integrated subsystem for auditing Docker/K8s infrastructure. Automatically detects container runtimes, enumerates containers and images, audits configurations, and probes escape vectors.

7 plugins: container_discovery -> container_enumeration -> registry_lookup -> image_fingerprint -> container_config_audit -> container_escape_probe -> container_verification


Training Validation

Benchmarking system for measuring detection coverage against known vulnerable targets. Each training profile defines a target, Docker compose configuration, authentication, scan paths, and expected findings. The validator uses multi-strategy matching (title containment, abbreviation expansion, category aliases, word overlap) with ±1 severity tolerance.

Benchmark Results (20 containers, 298 expected findings)

# Target Findings Auth Category
1 bWAPP 39 form PHP vulns (OWASP Top 10)
2 Mutillidae 30 form OWASP Top 10
3 Juice Shop 27 json_api Modern JS app
4 DSVW 21 form Python vulns
5 XVWA 19 form PHP vulns
6 BadStore 16 form Classic web
7 Altoro Mutual 15 form Banking app
8 DVWA 15 form PHP vulns
9 WackoPicko 15 form Classic web
10 DVGA 13 form GraphQL API
11 Hackazon 12 form E-commerce
12 Gruyere 11 form Python app
13 crAPI 10 json_api Microservices API
14 DVWS 10 form WebSocket security
15 WebGoat 9 form Lesson-based
16 NodeGoat 8 form Node.js
17 RailsGoat 8 form Ruby on Rails
18 vAPI 8 json_api REST API
19 VAmPi 7 json_api REST API
20 Pixi 5 form OWASP DevSlop

Guided validation coverage: ~97% (289/297) across 19 tested containers, 13 at 100%.

Note: Coverage is measured with pre-seeded endpoints, configured authentication, and multi-strategy validator matching. This measures the framework's detection capability when given optimal conditions, not blind discovery from scratch.


Decision Tracing

Every autonomous decision is recorded with full context for auditability and debugging.

Pre-execution (before plugin runs):

Post-execution (after plugin runs):

14 event types: ENTITY_CREATED, ENTITY_UPDATED, OBSERVATION_APPLIED, PLUGIN_STARTED, PLUGIN_FINISHED, GAP_DETECTED, STEP_COMPLETED, DECISION_MADE, GOAL_ADVANCED, AUDIT_COMPLETED, BELIEF_STRENGTHENED, BELIEF_WEAKENED, HYPOTHESIS_CONFIRMED, HYPOTHESIS_REJECTED.


Campaign Memory

Persistent cross-audit learning. Remembers infrastructure, plugin effectiveness, and technology stacks across audits. Opt-in, disabled by default.

What it learns:

How it helps:


Plugin System

188 Plugins (10 categories)

Category Count Examples
Recon 23 dns_enum, subdomain_crtsh, whois, web_crawler, email_harvest
Scanning 19 port_scan, ssl_check, cors_scan, graphql_detect, container_discovery
Analysis 23 http_headers, tech_detect, waf_detect, csp_analyzer, image_fingerprint
Pentesting 60 sqli_basic, xss_basic, ssrf_check, ssti_check, command_injection, xxe_check
Exploitation 23 cors_exploit, graphql_exploit, redis_exploit, container_escape_probe
Crypto 8 hash_crack, padding_oracle, prng_crack, rsa_attack
Lateral 12 kerberoast, pass_the_hash, ntlm_relay, credential_spray
Privesc 7 suid_exploit, kernel_exploit, sudo_exploit
Post-exploit 7 credential_harvest, network_enum, user_enum
Forensics 6 log_analyze, memory_analyze, pcap_analyze

All 188 plugins are automatically wrapped as v4 Scenarios via bridge/legacy_scenario.py. 5 native v4 scenarios in scenarios/.

Writing a Plugin

Drop into basilisk/plugins/<category>/ — auto-discovered at startup.


Signature Databases

Database Count Comparable to
Tech fingerprints 594 Wappalyzer top-500
CVE version checks 200+ retire.js
WAF signatures 125 wafw00f
CMS signatures 83 WPScan/CMSmap
Subdomain takeover 80 can-i-take-over-xyz
Favicon hashes 300+ Shodan
SQLi payloads 489 sqlmap
XSS payloads 35+ basic, 49 DOM XSStrike/Dalfox
SSTI probes 32 math + 48 fingerprints tplmap
Command injection 90 commix
NoSQLi payloads 92
JWT attacks 95
HTTP smuggling 45
Default credentials 75
Vulnerable base images 30
VulnRegistry definitions 100+ CWE/OWASP

Project Structure

Stack

Development

License

MIT


All versions of basilisk with dependencies

PHP Build Version
Package Version
Requires symfony/process Version 4.*|5.*
scrapekit/scrapekit Version 0.1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package librevlad/basilisk contains the following files

Loading the files please wait ...