veko
ORO Homoiconic Language • Custom VM • Wasm 3.0 (vvm) • Native x86_64 & arm64

Veko 1.0 Security & Federal AppSec Toolchain Guide

Zero-trust language guarantees paired with an integrated, pure-Veko Federal AppSec toolchain (lib/sec/*): SBOM, SAST, Mode 1 & Mode 2 DAST, VM-native IAST, RASP middleware/compiler passes, and automated ATO evidence bundles.

Veko treats security as a built-in language, compiler, runtime, and packaging discipline rather than an external bolt-on. A single veko binary enforces single-owner One Reference Only (ORO) memory safety, .secret data firewalls, capability sandboxing, strict No-JIT W^X execution, and hybrid post-quantum cryptography—and ships pure-Veko AppSec engines (sec/sbom, sec/sast, sec/dast, sec/iast, sec/rasp, sec/sarif) aligned to NIST SP 800-53 Rev. 5, NIST SSDF (SP 800-218), FIPS 140-3, CNSA 2.0, and OWASP Top 10 (2021).


1. Built-In Language & Runtime Security

Single-Owner ORO Memory Safety

Veko eliminates temporal and spatial memory corruption at compile time and runtime without a stop-the-world garbage collector:

  • Deterministic Ownership & Disjoint mut Loans: Every heap slab (strings, bytes, block, map, struct) has One Reference Only (ORO). Passing a value transfers ownership unless explicitly borrowed as mut at both the callee signature and call site (bytes/push mut buf 10), and disjoint field borrows (mut conn.tx_buf) are statically checked.
  • Zero Use-After-Free & Zero Double-Free: Because no two aliases can concurrently own or free the same heap slab, dangling pointers, double-free vulnerabilities, and reference-count cycle leaks are structurally impossible.
  • Bounds-Checked Indexing & Checked Narrowing: Out-of-bounds indexing/slicing and lossy integer narrowing (as-u8/or n [ ... ]) fail deterministically rather than corrupting adjacent memory.
  • Copy-on-Write Value Isolation: Shared immutable structures split safely on mutation, and top-level bindings are restricted to read-only configuration or immutable lookup tables—preventing unsynchronized cross-thread RT-GLOBALS data races.

The .secret Compiler Firewall

Veko elevates credentials, API tokens, and private key material into first-class compiler-enforced types (secret str and secret bytes):

VEKO
pub ServiceConfig = struct {
    endpoint  str
    api_token secret str
}

main = fn [] any [
    // Secret sources tag allocations with flag_secret (heap-only, no SSO escape)
    tok = os/getenv/secret/or 'API_TOKEN' [ bytes/with-secret 0 ]
    cfg = ServiceConfig {
        endpoint  = 'https://api.example.com'
        api_token = os/getenv/secret/or 'SERVICE_TOKEN' [ '' ]
    }

    // Automatic redaction in terminal/log formatting
    println tok             // prints: <secret>
    println cfg.api_token   // prints: <secret>
    0
]
  • No SSO Escape & Volatile Zeroization: .secret values never inhabit Small-String Optimization (SSO) inline buffers and are scrubbed with volatile memory zeroing on scope exit (drop), preventing secret residue in freed heap slabs or core dumps.
  • Automatic <secret> Redaction: print, println, mold, log/*, and sec/sarif automatically redact .secret values to <secret> (and sarif/redact-secrets scrubs Bearer ..., sk_live_..., AKIA..., and PEM PRIVATE KEY blocks to <REDACTED>).
  • Compile-Time & Runtime Sink Firewall: veko check --strict-types and the ORO VM reject .secret values flowing into json/encode, net/*, http/*, os/write-file, spawn captures, chan/send, or Web/Desktop state outside d/read-secret.

Strict No-JIT / W^X Execution & veko.vk Capability Confinement

  • Zero Dynamic Code Generation (W^X): None of Veko's three execution backends (64-bit VKO VM in oro_vm.vk, WebAssembly 3.0 sandbox, or native x86_64/AArch64 machine code) allocate writable-and-executable memory pages or emit runtime JIT stubs. All native binaries are ahead-of-time compiled and signed cleanly on W^X-enforced operating systems.
  • Declarative Manifest Capabilities (veko.vk): Every workspace declares minimal host permissions in veko.vk:
VEKO
name = 'ledger-api'
root = 'src/main.vk'
allow-caps = [.fs .clocks .env .net]

deps = {
    http_router = 'http_router@1.2.0'
}

Available capabilities are .fs (filesystem, confined via canonical path resolution), .clocks (wall/monotonic time), .env (environment variables), .net (sockets and HTTP), .exec (subprocess spawning), .ffi (native shared library calls, denied by default and forbidden in --wasm), and .ui (native windowing/TUI/WebView).

  • Canonical Path & SSRF Confinement: Filesystem operations resolve symlinks and reject .. escapes outside --allow-fs=<dir>, and --no-private-net / --allow-hosts=<csv> block loopback and cloud metadata (169.254.169.254) SSRF pivots.

WebAssembly 3.0 Sandbox & Shared-Nothing spawn / chan/* Isolation

  • Deterministic Fuel & Memory Quotas (--wasm / --vm): Untrusted plugins or multi-tenant workloads execute under strict instruction/step budgets (--fuel=<n>) and bounded 64 KiB Wasm linear memory pages (--mem-pages=<n>), with .ffi unconditionally disabled.
  • Shared-Nothing Concurrency: spawn [ ... ] workers cannot capture outer mut bindings or .secret values. All inter-worker communication crosses typed chan/* message queues and task/await, eliminating shared-memory lock contention and cross-tenant memory snooping.

Hybrid Post-Quantum Cryptography & Signed VKP1 Packages

Veko ships zero-FFI, pure-Veko implementations of NIST Post-Quantum Cryptography standards and CNSA 2.0 / FIPS 140-3 suites:

Standard / Protocol Veko Module Algorithms & Security Level
NIST FIPS 203 (ML-KEM) crypto/mlkem ML-KEM-512, ML-KEM-768, ML-KEM-1024 (constant-time implicit rejection)
NIST FIPS 204 (ML-DSA) crypto/mldsa ML-DSA-44, ML-DSA-65, ML-DSA-87 (pure & hedged deterministic signing)
NIST FIPS 205 (SLH-DSA) crypto/slhdsa SLH-DSA-SHAKE-128f, SLH-DSA-SHAKE-128s stateless hash-based signatures
Hybrid PQC TLS 1.3 net/tls13 X25519MLKEM768 (0x11EC) key exchange, ALPN h2/http/1.1, AES-128-GCM
FIPS 140-3 Approved Primitives crypto/aes, crypto/sha256, crypto/sha3 AES-GCM, SHA-256, SHA-384, SHA3-256, SHA3-512, SHAKE128/256

For supply-chain integrity, .vkp (VKP1) packages published to veko-lang.org or private airgapped mirrors carry SHA-256 digests, Merkle tree roots, and Ed25519 / ML-DSA-65 publisher signatures verified against veko.lock and trust-keys.json (or trust-keys in veko.vk).


2. Pure-Veko Federal AppSec Toolchain (lib/sec/*)

All security scanning, SBOM generation, runtime taint tracking, and active defense live in pure Veko inside lib/sec/* with zero external scanners, zero Python/Java dependencies, and zero top-level mut globals:

Module Purpose
sec/sarif Structured Finding model, SARIF 2.1.0 / JSON / text serializers, secret redaction (<REDACTED>), fingerprint baselines, and NIST SP 800-53 / SSDF compliance summaries
sec/sbom CycloneDX 1.5 & SPDX 2.3 SBOM generator, VEX attachment, veko.lock / .vkp SHA-256 & Merkle verifier, and FIPS 204 ML-DSA-65 SBOM attestation signing
sec/sast_rules Intra-procedural taint propagation, sanitizer tracking, suppression parser (// veko-sec-ignore:), and source sink rules
sec/sast Workspace/file SAST orchestrator, veko.vk & veko.lock auditor, FIPS 140-3 & federal profile enforcement, and SARIF baseline filtering
sec/dast_probes HTTP/HTTPS active security probe engine (VKDAST001–VKDAST012)
sec/dast Dual-mode DAST runner: Mode 1 (scan-url) live HTTP/HTTPS with rate/budget/ownership guardrails, and Mode 2 (scan-web-app) zero-socket in-process web/App testing
sec/iast Shadow taint tracker (IastSession), source/sanitizer/sink classifiers, and VM-native ORO runtime instrumentation (VKIAST001–VKIAST008)
sec/rasp Runtime guards (guard-url, guard-path, guard-sql, guard-exec), web/App middleware (rasp/middleware), and redacted .jsonl / CEF:0 SIEM telemetry (VKRASP001–VKRASP010)

SAST Rules (VKSEC001–VKSEC018)

sec/sast scans .vk source files (via sast_rules.vk and sast.vk) as well as veko.vk and veko.lock:

Rule ID Severity CWE NIST SP 800-53 NIST SSDF Description
VKSEC001 Critical CWE-798 IA-5 PW.7 Hardcoded secret, API key, private key, or credential literal
VKSEC002 High CWE-200 IA-5, AU-9 PW.7 Unmarked secret struct field or .secret variable passed to disclosure sink
VKSEC003 Critical CWE-89 SI-10 PW.7, PW.8 SQL injection via interpolated or tainted query (db/postgres, db/sqlite)
VKSEC004 Critical CWE-78 SI-10 PW.7, PW.8 OS command injection via tainted or interpolated os/exec command/args
VKSEC005 High CWE-22 SI-10, AC-6 PW.7, PW.8 Path traversal via unsanitized file path reaching os/* / fs/* sinks
VKSEC006 High CWE-918 SI-10, SC-7 PW.7, PW.8 Server-Side Request Forgery (SSRF) or unsafe javascript:/file:/data: webview URI
VKSEC007 High CWE-79 SI-10 PW.7, PW.8 Cross-Site Scripting (XSS) via unescaped HTML in web/html or webview html
VKSEC008 Medium CWE-327 SC-13 PW.7 Broken hash (crypto/md5, crypto/sha1) or static constant IV/nonce
VKSEC009 Medium CWE-295 SC-8 PW.7 Non-loopback cleartext http:// literal or disabled TLS verification (insecure = true, verify_tls = false)
VKSEC010 Medium CWE-250 AC-6 PW.7 Over-privileged or unused capabilities declared in veko.vk allow-caps
VKSEC011 High CWE-362 SC-39, SI-16 PW.7 Top-level mut heap global (RT-GLOBALS unsynchronized cross-thread race/UAF hazard)
VKSEC012 Medium CWE-252 SI-11 PW.7 Discarded error return (_ = ...) on fallible I/O, DB, network, or crypto call without /or
VKSEC013 Medium CWE-400 SC-5 PW.7 Unbounded while true [ loop without exit cap, or web/serve without .max_body_bytes
VKSEC014 High CWE-676 SA-11 PW.7 Direct .ffi native symbol invocation bypassing Veko memory and capability guarantees
VKSEC015 High CWE-345 SR-3, SR-4 PW.7 Floating dependency spec, missing veko.lock / trust-keys.json, or unpinned lockfile entry
VKSEC016 Medium CWE-601 SI-10 PW.7 Open redirect via unvalidated web/redirect / Location header, or non-quoted eval-quoted
VKSEC017 High CWE-327 SC-13 PW.7 Non-FIPS algorithm (chacha20, blake, x25519, md5, sha1) under --fips or --profile=federal
VKSEC018 Medium CWE-778 AU-2, AU-3, AU-9 PW.7 Auth/access failure path (401/403/web/unauthorized) without slog//log//audit/rasp/ logging (--profile=federal)

Additionally, veko audit --profile=federal emits VKAUDIT002 (Medium, CWE-693, NIST SI-3/SI-4/SC-7, SSDF PW.1/RV.1) when a networked service does not import sec/rasp or enable RASP protection.

Inline Suppressions & SARIF Baselines

To suppress a reviewed, false-positive SAST line locally, place a directive on the same line or immediately above it:

VEKO
// veko-sec-ignore: VKSEC009
dev_loopback = 'http://127.0.0.1:8080/health'

Use // veko-sec-ignore: VKSEC009, VKSEC012 for multiple rules, or pass --baseline=prev-sast.sarif so sec/sarif/apply-baseline filters previously accepted SHA-256 finding fingerprints while failing CI on any newly introduced vulnerability.

DAST Probes (VKDAST001–VKDAST012) — Mode 1 & Mode 2

sec/dast supports two interchangeable probe modes over the exact same VKDAST001–VKDAST012 suite:

  • Mode 1 (dast/scan-url / veko dast <url>): Sends paced, budget-capped live HTTP/HTTPS probes (--rps, --max-requests, --timeout). Non-loopback targets require explicit --i-own-this-target authorization.
  • Mode 2 (dast/scan-web-app): Executes probes directly in-memory against a web/App handler with zero open TCP sockets—ideal for airgapped CI runners and unit-test gates.
Rule ID Severity CWE NIST SP 800-53 NIST SSDF Probe & Detection
VKDAST001 Medium CWE-693 SC-8, CM-7 PW.8 Missing CSP, X-Content-Type-Options: nosniff, X-Frame-Options, HSTS (HTTPS), or exposed Server version
VKDAST002 Medium CWE-614 SC-8, IA-5 PW.8 Set-Cookie missing HttpOnly, SameSite, or Secure (over HTTPS)
VKDAST003 High CWE-942 AC-3 PW.8 Permissive or reflected CORS Access-Control-Allow-Origin / credentials policy
VKDAST004 Critical CWE-538 AC-3, CM-7 PW.8 Public HTTP 200 exposure of dotfiles, veko.vk, veko.lock, keys, or repo metadata
VKDAST005 High CWE-22 SI-10 PW.8 Path traversal / arbitrary file read signature in response
VKDAST006 High CWE-79 SI-10 PW.8 Reflected Cross-Site Scripting (XSS) canary echoed unescaped in HTML
VKDAST007 Critical CWE-89 SI-10 PW.8 SQL injection probe triggering raw database error signature
VKDAST008 Medium CWE-601 SI-10 PW.8 Open redirect (Location header) pointing to untrusted external host
VKDAST009 High CWE-209 SI-11, AU-9 PW.8 Verbose panic: / stack trace or secret token disclosure in response body
VKDAST010 Low CWE-16 CM-7 PW.8 HTTP TRACE method enabled and echoing probe headers
VKDAST011 High CWE-113 SI-10 PW.8 HTTP response header / CRLF injection (\r\n)
VKDAST012 Medium CWE-400 SC-5 PW.8 Unbounded request body handling (128 KiB POST crash/5xx instead of 413/400)

Mode 2 Zero-Socket DAST Example

VEKO
use [
    dast  = sec/dast
    sarif = sec/sarif
    web
]

main = fn [] any [
    mut app = web/new-app
    put mut app .max_body_bytes 1048576
    web/use-security-headers mut app
    web/get mut app '/health' fn [_req web/Request] web/Response [
        web/text 200 'ok'
    ]

    rep = dast/scan-web-app app (dast/DastOpts {
        routes  = ['/health']
        profile = .standard
    })
    if sarif/exceeds-threshold? rep.findings .high [
        return (err 'high/critical DAST findings detected')
    ]
    println (sarif/to-text 'veko-dast' rep.findings)
    0
]

IAST VM-Native Shadow Taint Tracking (VKIAST001–VKIAST008)

During veko iast <entry.vk>, veko test --iast, or veko audit --iast, the 64-bit ORO VM (oro_vm.vk) attaches a live sec/iast/IastSession that taints outputs from untrusted sources (web/query-get, web/param, web/header, web/cookie-get, web/form, os/getenv, os/args, sec/iast/taint), tracks sanitizer calls (os/real-path, path/clean, path/resolve-safe, html/escape, sec/rasp/guard-*), and inspects runtime sink arguments with call-stack attribution:

Rule ID Severity CWE NIST SP 800-53 NIST SSDF Runtime Sink Class
VKIAST001 Critical CWE-89 SI-10, SA-11 PW.8 Tainted query reaching db/postgres/* or db/sqlite/* without $1 / ? binding
VKIAST002 Critical CWE-78 SI-10, SA-11 PW.8 Tainted argument reaching os/exec
VKIAST003 High CWE-22 SI-10, SA-11, AC-6 PW.8 Unsanitized tainted path reaching os/read-file, os/write-file, os/remove, or os/open
VKIAST004 High CWE-918 SI-10, SA-11, SC-7 PW.8 Unvalidated tainted URL reaching net/client/* or net/tcp-connect
VKIAST005 High CWE-79 SI-10, SA-11 PW.8 Unescaped tainted HTML reaching web/html or ui/desktop/webview
VKIAST006 Medium CWE-601 SI-10, SA-11 PW.8 Unvalidated tainted target reaching web/redirect
VKIAST007 High CWE-94 SI-10, SA-11 PW.8 Tainted input reaching ui/view/eval-quoted
VKIAST008 High CWE-200 IA-5, AU-9 PW.8 .secret argument reaching print, println, web/text, web/html, web/json-resp, json/encode, or net/write

RASP Active Protection & SIEM Telemetry (VKRASP001–VKRASP010)

sec/rasp operates both as explicit application guards (rasp/middleware, rasp/guard-url, rasp/guard-path, rasp/guard-sql, rasp/guard-exec) and as a zero-boilerplate AST/compiler instrumentation pass (--rasp=monitor or --rasp=enforce in src/rasp_pass.vk) that wraps filesystem, process execution, and network sinks automatically across VM, Wasm, and native builds:

Rule ID Severity CWE NIST SP 800-53 Enforcement Point & Behavior
VKRASP001 Critical CWE-89 SI-10 guard-sql & HTTP middleware: blocks stacked SQL, UNION SELECT, and tautologies (403)
VKRASP002 Critical CWE-78 SI-10 guard-exec: blocks shell metacharacters, shell interpreters (sh/bash/cmd/powershell), and unapproved binaries
VKRASP003 High CWE-22 SI-10 guard-path & HTTP middleware: blocks null bytes, .. / %2e%2e traversal, and fs_root escapes (403)
VKRASP004 High CWE-918 SC-7 guard-url: blocks non-http/https schemes, private/loopback IPs (169.254.169.254), and unapproved hosts
VKRASP005 High CWE-79 SI-10 HTTP middleware: blocks <script, onerror=, onload=, javascript: payloads (403)
VKRASP006 High CWE-113 SI-10 HTTP middleware: blocks \r/\n/%0d/%0a CRLF header injection (400)
VKRASP007 Medium CWE-400 SC-5 HTTP middleware: rejects payloads exceeding RaspConfig.max_body_bytes (413)
VKRASP008 Medium CWE-770 SC-5 HTTP middleware: sliding per-IP rate limit RaspConfig.rate_limit_rpm (429)
VKRASP009 High CWE-644 SC-7 HTTP middleware: rejects requests whose Host header is outside RaspConfig.allowed_hosts (403)
VKRASP010 High CWE-346 SC-7 HTTP middleware: rejects cross-origin requests outside RaspConfig.allowed_origins (403)
VEKO
use [
    rasp = sec/rasp
    web
]

main = fn [] any [
    rasp_cfg = rasp/RaspConfig {
        mode             = .enforce
        app_name         = 'fed-gateway'
        allowed_hosts    = ['api.example.com']
        telemetry_format = .cef     // .cef (CEF:0) or .jsonl, secrets auto-scrubbed to <REDACTED>
        max_body_bytes   = 1048576
        rate_limit_rpm   = 120
    }

    mut app = web/new-app
    put mut app .max_body_bytes 1048576
    web/use-mw mut app (rasp/middleware rasp_cfg)

    web/get mut app '/proxy' fn [req web/Request] web/Response [
        target = web/query-get req 'url' ''
        safe_url = rasp/guard-url/or rasp_cfg target [ e ->
            return (web/json-resp 403 { error = mold e })
        ]
        web/json-resp 200 { validated_url = safe_url }
    ]
    0
]

3. Complete CLI & Compiler Flag Reference

veko sbom — Verified & Signed SBOM Generation

POWERSHELL
veko sbom [dir] [options]
Flag Description
--format=<cyclonedx|spdx> Output format: CycloneDX 1.5 (cyclonedx, default) or SPDX 2.3 (spdx)
--include-stdlib Embed all stdlib VFS modules with SHA-256 digests and byte sizes
--verify Verify veko.lock, cached .vkp SHA-256 digests, Merkle roots, and signatures
--vex=<path> Attach a CycloneDX/OpenVEX JSON document from <path>
--sign-key=<path> Sign the SBOM JSON using a 64-hex-char FIPS 204 ML-DSA-65 seed key (writes <out>.sig.json)
--supplier=<str> NTIA supplier name (default: Veko Workspace)
--author=<str> SBOM creator/author string (default: veko sbom 1.0.0)
-o <path>, --out=<path> Write SBOM JSON to <path> instead of stdout

veko sast — Static Application Security Testing

POWERSHELL
veko sast [path] [options]
Flag Description
--profile=<standard|federal> Rule profile (standard default; federal enables strict caps, FIPS 140-3, and VKSEC018 audit checks)
--fips Enable FIPS 140-3 / CNSA 2.0 crypto checks (VKSEC017) under any profile
--strict-caps Flag unused sensitive capabilities in veko.vk allow-caps (VKSEC010)
--baseline=<path> Suppress findings whose fingerprint matches a prior SARIF/JSON baseline file
--exclude=<glob> Exclude matching paths (repeatable)
--format=<text|json|sarif> Output format (text default; sarif emits SARIF 2.1.0 with NIST/SSDF tags)
-o <path>, --out=<path> Write report to <path>
--fail-on=<low|medium|high|critical> Exit non-zero if any unsuppressed finding meets or exceeds the threshold

veko dast — Dynamic Application Security Testing

POWERSHELL
veko dast <url> [options]
Flag Description
--routes=<path> Load extra endpoint paths (one per line) from <path>
--openapi=<path> Discover routes automatically from an OpenAPI 3.x JSON/YAML specification
--profile=<quick|standard|full> Probe depth (standard default)
--auth-bearer=<env:VAR> Read Authorization: Bearer token from environment variable VAR
--cookie=<env:VAR> Read Cookie header value from environment variable VAR
--rps=<n> Maximum probe requests per second (default: 10)
--max-requests=<n> Maximum total HTTP probes sent (default: 200)
--timeout=<ms|s> Total scan wall-clock timeout, e.g. 30s or 30000 (default: 30000)
--i-own-this-target Explicit authorization confirmation required for non-loopback target URLs
--format=<text|json|sarif> Output format (text, json, or sarif)
-o <path>, --out=<path> Write report to <path>
--fail-on=<low|medium|high|critical> Exit non-zero if any finding meets or exceeds severity

veko iast & veko test --iast — VM-Native Runtime Taint Tracking

POWERSHELL
veko iast <entry.vk> [options]
veko test --iast [file|dir]...
Flag Description
--format=<text|json|sarif> Output format for veko iast (text, json, or sarif)
-o <path>, --out=<path> Write IAST report to <path>
--fail-on=<low|medium|high|critical> Exit non-zero on findings meeting or exceeding threshold
-A, --allow-all Grant os/exec host capability inside the instrumented IAST VM run
veko test --iast Enable ORO VM shadow taint tracking across *_test.vk suites; fails on critical/high findings

veko run --rasp & veko compile --rasp — Compiler-Injected RASP

POWERSHELL
veko run --rasp=monitor src/main.vk
veko run --rasp=enforce src/main.vk
veko compile --native --rasp=enforce src/main.vk -o dist/service.exe
  • --rasp=monitor: Instruments os/* and net/* sinks to log RASP policy violations (CEF/JSONL) without halting execution—useful for rollout baselining.
  • --rasp=enforce: Rejects violating filesystem paths, shell commands, and SSRF URLs at runtime with deterministic VKRASP* errors.

veko audit — Unified Airgapped ATO Evidence Generator

POWERSHELL
veko audit [dir] --profile=federal --include-stdlib --sign-key=keys/mldsa65.seed --out-dir=dist/ato-evidence

When --out-dir=<dir> is supplied, veko audit produces a complete, self-verifying Authority to Operate (ATO) evidence bundle:

Output Artifact Contents
sbom.cdx.json CycloneDX 1.5 SBOM (plus sbom.cdx.json.sig.json with ML-DSA-65 signature when --sign-key is given)
sbom.spdx.json SPDX 2.3 SBOM
sast.sarif.json Complete SAST SARIF 2.1.0 report
dast.sarif.json DAST SARIF 2.1.0 report (when --dast-url is provided)
iast.sarif.json IAST SARIF 2.1.0 report (when --iast or --iast-entry=<file.vk> is provided)
rasp_policy.json Detected manifest capabilities, RASP middleware/guard posture, and recommended mode
nist_800_53_ssdf_summary.json Aggregated NIST SP 800-53 Rev. 5 and NIST SSDF control/finding rollup
ato_summary.md Human-readable executive audit summary Markdown report
evidence_manifest.sha256.json SHA-256 digests and byte lengths for every generated evidence file

veko audit also supports --fips, --strict-caps, --iast, --iast-entry=<file.vk>, --dast-url=<url>, --i-own-this-target, --routes=<file>, --openapi=<file>, --format=<text|json|sarif>, and --fail-on=<low|medium|high|critical>.

Runtime Capability & Sandbox Flags (veko run)

Flag Effect
-A, --allow-all Grant standard dev capabilities (.fs, .clocks, .env, .net, .exec, .ui; excludes .ffi)
-C, --caps=<csv> Grant comma-separated capabilities (e.g. -C net,fs or --caps=net,fs,ffi)
--allow-net Enable outbound TCP/HTTP networking
--allow-listen Enable TCP server bind/listen/accept
--allow-private-net Allow loopback and RFC1918 destinations
--no-private-net Block loopback and RFC1918 even if veko.vk grants .net
--allow-hosts=<csv> Restrict outbound network connections to an explicit comma-separated host allowlist
--allow-fs[=<dir>] Enable filesystem access, confined canonically to <dir>
--allow-ffi Opt in to native .ffi calls (denied on --wasm)
--fuel=<n|0> Enforce instruction/step fuel quota on --wasm and --vm (0 = unlimited)
--mem-pages=<n> Cap Wasm 3.0 linear memory to <n> 64 KiB pages

4. Copy-Ready CI/CD Workflows

GitHub Actions: SAST, Mode 1 DAST, Code Scanning SARIF & CycloneDX SBOM

YAML
name: Veko AppSec Pipeline

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

permissions:
  contents: read
  security-events: write

jobs:
  veko-appsec:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Install Veko SDK
        run: |
          veko doctor --offline

      - name: Strict Type & Secret Firewall Check
        run: |
          veko check --strict-types src/main.vk

      - name: Run Federal SAST (SARIF 2.1.0)
        run: |
          veko sast --profile=federal --fips --format=sarif -o dist/sast.sarif --fail-on=high .

      - name: Run Mode 2 Zero-Socket DAST & IAST Test Gate
        run: |
          veko test --iast --coverage=dist/cov.html tests/

      - name: Run Live Loopback DAST Scan
        run: |
          veko run --rasp=enforce src/server.vk &
          SRV_PID=$!
          sleep 2
          veko dast http://127.0.0.1:8080 --routes=routes.txt --profile=standard --format=sarif -o dist/dast.sarif --fail-on=high
          kill $SRV_PID || true

      - name: Generate Verified CycloneDX SBOM
        run: |
          veko sbom --format=cyclonedx --include-stdlib --verify -o dist/sbom.cdx.json .

      - name: Upload SAST SARIF to GitHub Code Scanning
        if: always()
        uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: dist/sast.sarif
          category: veko-sast

      - name: Upload DAST SARIF to GitHub Code Scanning
        if: always()
        uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: dist/dast.sarif
          category: veko-dast

      - name: Archive SBOM & Coverage Artifacts
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: veko-security-artifacts
          path: |
            dist/sbom.cdx.json
            dist/cov.html

GitLab CI: SAST, Verified SBOM & Federal ATO Bundle

YAML
stages:
  - check
  - appsec
  - release

veko_static_and_iast:
  stage: check
  script:
    - veko fmt --check src/ tests/
    - veko check --strict-types src/main.vk
    - veko test --iast tests/

veko_sast_and_sbom:
  stage: appsec
  script:
    - mkdir -p dist
    - veko sast --profile=federal --fips --format=sarif -o dist/sast.sarif --fail-on=high .
    - veko sbom --format=cyclonedx --include-stdlib --verify -o dist/sbom.cdx.json .
  artifacts:
    when: always
    paths:
      - dist/sast.sarif
      - dist/sbom.cdx.json

veko_federal_audit:
  stage: release
  script:
    - veko audit --profile=federal --fips --strict-caps --include-stdlib --iast --out-dir=dist/ato-evidence --fail-on=high .
    - veko compile --native --rasp=enforce src/main.vk -o dist/service
  artifacts:
    when: always
    paths:
      - dist/ato-evidence/
      - dist/service

Airgapped Federal ATO Pipeline (Zero-Network SCIF Runner)

For disconnected high-side environments where outbound TCP sockets and external package registries are forbidden:

POWERSHELL
# 1. Verify offline toolchain, embedded stdlib VKFS, and veko.lock integrity
veko doctor --offline
veko sbom --verify --include-stdlib --format=cyclonedx --sign-key=keys/mldsa65.seed -o dist/sbom.cdx.json .

# 2. Enforce strict types, .secret firewall, and zero-socket Mode 2 DAST + VM IAST taint checks
veko check --strict-types src/main.vk
veko test --iast --coverage=dist/cov.html tests/

# 3. Run full Federal + FIPS 140-3 audit & generate SHA-256 attested ATO evidence bundle
veko audit --profile=federal --fips --strict-caps --include-stdlib --iast --sign-key=keys/mldsa65.seed --out-dir=dist/ato-evidence --fail-on=high .

# 4. Build hardened native executable with compiler-injected RASP enforcement
veko compile --native --rasp=enforce src/main.vk -o dist/service.exe