Appearance
API protection
These commands configure and inspect API protection for an application: its settings, the API descriptions it is checked against, the identities of its clients, and the modules for XML, WS-Security, attestation, rewrites, object ownership, business flows, LLM endpoints, outbound requests, MCP servers and API keys.
waap api posture
Shows the authentication posture of each endpoint: its label, its risk, and the share of calls with and without credentials.
sh
waap api posture -app NAME [-window 90d] [-label LABEL] [-json]- Labels:
unauthenticated,mixed_auth,sensitive_data,sensitive_unauthenticated,stale,shadow. - Risk: high, medium or low.
-labelshows only endpoints with that label.- Thresholds are settings:
posture.min_calls,posture.unauthenticated_share,posture.mixed_share,posture.sensitive_share,posture.stale_days. Seewaap api get.
Admin guide section 33.10.
waap api volume
Learned request volume per endpoint (admin guide section 33.11).
sh
waap api volume list -app NAME [-status learning|suggested|changed|active|rejected]
waap api volume approve -app NAME (-endpoint "METHOD /path" ... | -all) [-m WHY] [-dry-run]
waap api volume reject -app NAME -endpoint "METHOD /path" ... [-m WHY] [-dry-run]
waap api volume reset -app NAME (-endpoint ... | -all) [-observations] [-m WHY] [-dry-run]list: p50, p99, samples, and the suggested and active limit per endpoint.approve: puts suggested or changed limits intoapi.volume_baselinesas a new version.reject: does not propose a limit for these endpoints.reset: removes learned entries. Hand-written ones stay.-observationsalso deletes the counted volume.
-endpoint can be repeated. All three changes are refused for an application without API protection.
Settings: volume_baseline.enabled, .learning_period, .factor, .floor, .min_samples, .window, .action (log or block), .auto_apply. Set them with waap api set.
waap api get
Prints every API protection setting of the application: key, effective value, default, whether it is written in the configuration, and the allowed values or range, grouped as in the UI. The first line says whether API protection is on.
sh
waap api get -app NAME [-json]waap api set
Changes settings and rolls them out as a new version.
sh
waap api set -app NAME [-m WHY] [-dry-run] KEY=VALUE...- The version is the one
waap api getread. If another version became active meanwhile, the change is refused; run it again. - Keys and values are checked before anything is sent: integers in range, sizes with an optional unit (
512,64KiB,1MiB),mode=detectorblock,enabled=trueorfalse. KEY=with no value removes the setting, back to its default.- The first
seton an application creates itsapisection, which turns API protection on. -dry-runprints the configuration changes and applies nothing.- Exit code 2 for an unknown key or invalid value.
- List settings take comma-separated values.
sh
waap api set -app shop -m "large catalog imports" limits.json.array_length=50000
waap api set -app shop graphql.paths=/graphql,/api/gql*waap api check
Loads an OpenAPI 3.x description on the control plane, stores nothing, and prints its title, version, server path and operations (method, path, operationId, parameters with * for required, body types). It also lists the patterns that would not be checked, with -ignore-patterns.
sh
waap api check -f FILE [-ignore-patterns] [-json]Exit code 1 when the description does not load, with the reason.
waap api describe
Shows the application's descriptions as enforced by the active version: file, checks, the base path requests are checked under, and the operations.
sh
waap api describe -app NAME [-spec NAME] [-json]waap api spec set
Adds a description, or replaces one with the same name. With -f the file is stored with the new version. Without -f, only the settings of an existing description change.
sh
waap api spec set -app NAME -name SPEC [-f FILE] [-base-path PATH] [-check CHECK=ACTION,...] [-ignore-patterns] [-m WHY] [-dry-run]- Checks:
unknown_paths,unknown_methods,parameters,request_bodies. - Actions:
block(the default for any check not given),log,allow(off). -base-pathoverrides the description's server path.-dry-runprints the changes only.- Exit code 2 for a bad
-check.
waap api spec remove
Stops enforcing a description. It is a new version, so a rollback brings it back.
sh
waap api spec remove -app NAME -name SPEC [-m WHY] [-dry-run]waap api grpc check
Loads a descriptor set, stores nothing, and lists its methods with request type and streaming. Exit code 1 if it does not load.
sh
waap api grpc check -f FILE [-json]waap api grpc describe
Shows the application's descriptor set, message size, and each method with whether grpc.methods allows it.
sh
waap api grpc describe -app NAME [-json]waap api grpc set
Stores the descriptor set with a new version and turns gRPC checks on.
sh
waap api grpc set -app NAME -f FILE [-m WHY] [-dry-run]waap api grpc remove
Turns gRPC checks off.
sh
waap api grpc remove -app NAME [-m WHY] [-dry-run]Allowed methods and the message size are settings:
sh
waap api set -app NAME grpc.methods=... grpc.message_size=1MiBwaap api inventory
Lists endpoints answered on any node in the window (default 7 days, at most 90d). Each has a status (described, shadow, stale, unused or observed), operation, calls, 4xx and 5xx counts, and last seen. The output starts with a count per status.
sh
waap api inventory -app NAME [-status STATUS] [-window 7d] [-json]-status shadow shows only those endpoints.
waap api auth
Shows the JWT rules (paths, issuers, audiences, and the key set: file, or URL with key count, last fetch and the last error), the API key rules, and the consumers with their limits, rate and number of active keys.
sh
waap api auth -app NAME [-json]waap api list get and waap api list set
-list is auth.jwt, auth.api_keys or consumers, or for the other lists learned_schemas, attestation.verifiers and mcp.servers as noted in the sections below.
sh
waap api list get -app NAME -list LIST
waap api list set -app NAME -list LIST -f FILE [-m WHY] [-dry-run]getprints the records as YAML, the same formatsetreads. JSON works too.setreplaces the whole list with the file's records. An empty list[]removes it. The records are validated before anything is applied, and stored as a new version.
waap identity
Manages the client identity keys. Viewers read, operators change, administrators rotate. Every command takes -app NAME.
sh
waap identity <command> -app NAME [flags]| Command | What it does |
|---|---|
get -app A | The settings (value, default, whether set, allowed) and the ordered sources. |
set -app A [-m WHY] [-dry-run] KEY=VALUE... | Changes ipv6_prefix, mode, require.paths, require.action. KEY= returns to the default. |
sources -app A | Lists the sources in order (-json for JSON). |
sources -app A -f FILE [-m WHY] [-dry-run] | Replaces the sources with the YAML or JSON list in FILE (kind, claim, name, trusted_from). |
sources -app A -add SPEC [-before N] | Adds a source. SPEC is comma-separated key=value, for example kind=cookie,name=sid, or kind=header,name=X-Customer-Id,trusted_from=10.0.0.0/8+192.168.0.0/16 (networks joined with +). Added last, unless -before N (1-based) is given. |
sources -app A -remove N | Removes source number N. |
sources -app A -reset | Returns to the default sources (consumer, user, ip). |
test -app A [-ip ADDR] [-header K:V]... [-cookie K=V]... [-consumer NAME] [-claim K=V]... [-user NAME] [-ja4 FP] [-path P] | Shows which source identifies a described request, the kind, key and label, and why earlier sources did not apply. -claim marks the consumer as a verified JWT. Nothing is sent or stored. |
rotate-key -app A -yes | Makes a new identity key (administrators only). Every client's key changes. |
-m, -dry-run and -json work as for other commands. A change the server refuses exits 1 with the reason. Refusals include a header source without trusted_from, Authorization as a header name, and a jwt_claim without a JWT rule.
Events: waap events list -identity KEY filters by the key shown in the IDENTITY column, and waap events show ID shows the full identity.
waap api xml contracts
Lists the XML and SOAP contracts of the application: kind, paths, action on violation, operations found, and whether each loaded. Each operation and warning is shown.
sh
waap api xml contracts -app Awaap api xml contract set
Adds or replaces a contract. -f is the main file, and each -import is another file. File names must be plain and unique. The files are checked by waap-xmlcheck first and stored with the version. Without -f, only the settings change.
sh
waap api xml contract set -app A -name N -kind wsdl|xsd|dtd -path P[,P...] -f FILE [-import FILE]... [-root {ns}local] [-soap-action check|ignore] [-operation X,Y] [-on-violation block|log] [-m WHY] [-dry-run]waap api xml contract remove
Removes a contract.
sh
waap api xml contract remove -app A -name N [-m WHY] [-dry-run]waap api xml check
Checks files and lists the operations, global elements and warnings. Nothing is stored. Exits 1 when the contract does not load.
sh
waap api xml check -kind K -f FILE [-import FILE]... [-root {ns}local]waap api xml helpers
Shows the helper processes: enabled, installed, needed, state, restarts, crashes and the last error.
sh
waap api xml helpersThe XML settings work with waap api set:
sh
waap api set -app A xml.mode=block xml.budget=200ms xml.max_document=2MiB xml.on_unavailable=openThe helper settings are changed with waap settings get|set helpers: xmlcheck.enabled, xmlcheck.binary, xmlcheck.workers, xmlcheck.memory, xmlcheck.cpu_seconds. Administrators only.
The design lists waap system helpers. There is no system command, so the helper state is shown by waap api xml helpers.
waap-xmlcheck
The helper binary. waap run and waap inspect start it, not an operator by hand.
| Command | What it does |
|---|---|
waap-xmlcheck check -kind wsdl|xsd|dtd [-root {ns}local] FILE [IMPORT...] | Loads a contract the way an upload does and prints JSON: ok, error, digest, operations (name, element, soap_action, versions, style), elements, patterns (enforced), warnings. Exit 0 if loaded, 1 if refused, 2 for usage, 3 if over 10 s. |
waap-xmlcheck serve -socket PATH [-workers N] [-memory BYTES] [-cpu-seconds N] | The service the node supervises. Defaults: 2 workers, 512 MiB, no CPU limit. |
waap-xmlcheck version | Prints the version and the linked libxml2 version. |
waap api wssec
WS-Security and XML signature wrapping. Every command takes -app NAME and -json.
sh
waap api wssec keys -app NAME
waap api wssec key set -app NAME -name KEY -kind decrypt|sign -f FILE
waap api wssec key remove -app NAME -name KEY -kind decrypt|sign
waap api wssec certs -app NAME
waap api wssec cert set -app NAME -name FILE -role trusted|signing -f PEM [-m WHY] [-dry-run]
waap api wssec cert remove -app NAME -name FILE [-m WHY] [-dry-run]keyslists the private keys stored: name, kind, whether the running configuration uses it, the SHA-256 of the public key, and when and by whom it was set. Keys are write-only and never printed.key setstores a PEM private key (RSA or EC forsign, RSA fordecrypt;-f -reads standard input), replacing the key of that name and kind. Administrators only.key removeis refused (exit 1) while the running configuration uses the key.certsshows the certificate files named inws_security.trusted_certsandws_security.sign_cert, and the certificates loaded from them.cert setstores a public PEM file with a new version and names it in the settings.trustedadds it to the list;signingsets the signing certificate. A private key is refused.cert removetakes the file out of the settings. Use the-nameascertsprints it, for examplewssec-certs/shop/partner-ca.pem.-mis the comment.-dry-runshows the changes only.
Other settings: waap api set -app NAME ws_security.paths=....
Exit 2 for missing flags, 1 for an error.
waap api learned
Learned API schemas. All subcommands take -app NAME and -json.
sh
waap api learned schema -app NAME -endpoint "METHOD /path"
waap api learned suggestions -app NAME
waap api learned approve -app NAME [-id ID ...] [-all] [-m WHY] [-dry-run]
waap api learned reject -app NAME -id ID ...
waap api learned restore -app NAME -id ID ...
waap api learned openapi -app NAME [-suggested] [-o FILE]schema: what was learned for one endpoint: bodies seen, and for each request and answer field the count, share present, kinds, clients, and whether it is learned.suggestions: schema suggestions, with id, endpoint, status (new,approved,rejectedormanual), change, bodies and answers, and the policy version they were read at.approve: puts suggestions intoapi.learned_schemasas a new version.-allapproves every new one. Manual schemas are never changed. Rejected ones must be restored first. Exit 1 when refused.reject: does not propose a schema again, while relearning gives the same one.restore: proposes a rejected schema again.openapi: writes the schemas as an OpenAPI 3.1 document to standard output or to FILE.-suggestedadds learned schemas not yet approved. Exit 1 when there are none.
Hand-written schemas:
sh
waap api list get|set -app NAME -list learned_schemas [-f FILE]Setting:
sh
waap api set -app NAME learned.unknown_fields=refusewaap api attest
Mobile app attestation: App Attest devices, Play Integrity keys and token checks.
sh
waap api attest keys -app NAME
waap api attest key set -app NAME -verifier NAME -kind play-decrypt|play-verify -f FILE
waap api attest key remove -app NAME -verifier NAME -kind play-decrypt|play-verify
waap api attest devices -app NAME [-verifier NAME] [-environment production|development] [-idle-days N] [-limit N] [-after ID]
waap api attest device revoke -app NAME -id ID
waap api attest check -app NAME -f FILE [-method M] [-path P] [-query Q] [-body-file FILE]keyslists the Play Integrity keys stored (verifier, kind, when and by whom). The keys themselves are never shown. All take-app NAMEand-json.key setstores the key as the Play Console shows it.play-decrypttakes a base64 AES-256 key.play-verifytakes an EC P-256 public key as PEM or base64 DER.-f -reads standard input. It replaces that verifier's key of that kind. Administrators only. A key that does not parse is refused without being echoed.key removeremoves that verifier's key of that kind.deviceslists the registered App Attest devices (ID, verifier, environment, counter, registered, last used) as a table, or as JSON with-json.-limitis 1 to 500 (default 100). When more match, the last line prints the-after IDto continue.-idle-days Nkeeps devices unused for N days.device revokeremoves one device by the 64-hex ID the list shows. Operators only. Exit 1 when the device does not exist. The app must register again.checkreads the token from FILE (-for standard input, so it stays out of the shell history; at most 16 KiB). It can also take the-method,-path,-queryand-body-file(at most 64 KiB) the token was bound to. It printsaccepted by verifier X(exit 0) orrefused: RULE: reason(exit 1). It changes nothing.
The verifiers are a record list, set with waap api list get|set -app NAME -list attestation.verifiers. Setting: waap api set -app NAME attestation.paths=/api/mobile/*.
waap api rewrites
Application API call rewrites.
sh
waap api rewrites -app NAME [-f FILE] [-m WHY] [-dry-run]
waap api rewrite test -app NAME [-method M] -path PATH
waap api rewrite test -app NAME -location VALUE [-scheme http|https] [-host HOST]rewritesprints the application's rewrites as YAML (-jsonfor JSON). With-fit replaces them with the records in FILE, a YAML or JSON list as inpolicy.api.rewrites, as a new version.-mis the comment.-dry-runshows the changes only.rewrite testshows what the active rewrites do to a public request path: the rewrite, the backend path, host, and the headers set and removed.-methoddefaults to GET. With-locationit shows the public form of a backendLocationvalue.-schemeand-hostdescribe the request; the host defaults to the application's first host name.
Nothing is sent. Exit 2 for missing flags, 1 for an error.
waap api ownership
Object ownership checks (BOLA and IDOR).
sh
waap api ownership -app NAME [-days N]
waap api ownership endpoints -app NAME [-f FILE] [-m WHY] [-dry-run]
waap api ownership reset -app NAME -yesownershipshows whether the checks are on, the objects this node knows, and whether the learning period still runs. For each kind of object it shows the watched, foreign, enumeration and sequential counts of the last N days (1 to 90, default 7).-jsongives everything.endpointsprints the manually described endpoints as YAML. With-fit replaces them: a list ofendpoint,ids,namespace,hands_out. Stored only whileownership.enabledis on.resetmakes this node forget every learned owner, removes the stored counts and starts the learning period again. It needs-yes.
Settings are the ownership.* keys of waap api get and waap api set.
waap api flows
Business-flow guard.
sh
waap api flows -app NAME [-f FILE] [-m WHY] [-dry-run]
waap api flows status -app NAME
waap api flows suggestions -app NAME [-approve ID,...|all] [-m WHY] [-dry-run]
waap api flows forget -app NAME -flow FLOW -value VALUE [-identity IDENTITY]flowsprints the flow definitions as YAML. With-fit replaces them (a list as inpolicy.api.flows.definitions).statuslists, per flow and step, the requests and violations counted on this node.suggestionslists step orders learned from traffic. It needsflows.learning.enabled. Each has an ID, the action (new flow, append or prepend), the clients that took that order, and their share.-approvewith IDs, orall, adds them to the definitions as a new version.-dry-runpreviews.forgetreleases a used-once value so it can be used again on every node after its next sync. For a value used once per client, give the client's identity as it appears in the client's events with-identity.
waap api llm
LLM endpoint protection. All subcommands take -json.
sh
waap api llm endpoints -app NAME [-f FILE] [-m WHY] [-dry-run]
waap api llm usage -app NAME [-day YYYY-MM-DD]
waap api llm check [-app NAME] -text TEXT | -f FILE
waap api llm helperendpointsprints the application's chat endpoints as YAML. With-fit replaces them with the records in FILE (a YAML or JSON list as inpolicy.api.llm.endpoints) as a new version.-mis the comment and-dry-runpreviews. An invalid list (agenericendpoint withoutprompt, a bad path) is refused with exit 1.usageprints the endpoints' budgets and the day's requests, input and output tokens, cost, and estimated calls per client identity and endpoint, summed over the nodes, with totals. The day defaults to today (UTC). Exit 1 for a bad-day.checkscores a text with the injection heuristics (score, matched patterns) and the classifier (score, or why it is unavailable). The text comes from-text, or from-f FILE;-f -reads standard input. At most 64 KiB. With-app, it uses that application's settings. Nothing is stored.helpershows the state ofwaap-promptcheck. It is also listed bywaap api xml helpers.
Settings are the llm.* keys of waap api get|set -app NAME. Exit 2 for missing flags.
waap llm model
Manages the prompt-injection classifier's model files for waap-promptcheck. Weights are never shipped. The operator downloads them or copies them in.
| Command | What it does |
|---|---|
waap llm model list | Lists the known models: name, size, licence, source repository and pinned revision. |
waap llm model fetch [-model NAME] [-dir DIR] | Downloads a known model (default deberta-v3-pi-v2) into DIR/NAME (default /var/lib/waap/models/promptcheck). Each file is checked by size and SHA-256, then a manifest.json is written. An existing file that matches is kept. |
waap llm model import -f SRC [-name NAME] [-dir DIR] | Copies model.onnx, tokenizer.json and config.json from SRC into DIR/NAME. Use it on air-gapped nodes, or for a model you converted. A known model's files must match their pinned hashes. Others are recorded with the hashes they have. |
The command prints the settings to use next:
sh
waap settings set helpers promptcheck.enabled=true promptcheck.model=DIRwaap ssrf
SSRF and outbound guard.
sh
waap ssrf get -app A
waap ssrf set -app A [-m WHY] [-dry-run] KEY=VALUE...
waap ssrf check -value URL [-name NAME] [-app A]| Command | What it does |
|---|---|
get -app A | The settings (guard, DNS checks and the outbound proxy egress.*): value, default, whether set, allowed. With the proxy on, it shows the address to give the application. |
set -app A [-m WHY] [-dry-run] KEY=VALUE... | Changes settings, for example mode=block, allow_networks=10.20.0.0/16, egress.enabled=true, egress.listen=127.0.0.1:15080, egress.allow_hosts=api.partner.example,*.cdn.example. KEY= returns to the default. |
check -value URL [-name NAME] [-app A] | Reads a value as the guard does: each host reading, whether it is flagged, the rule and category, and with -app that application's mode. -name is the parameter name the value arrives under (matched against url_names). Without -app, the value is read as under a URL-like name. Nothing is sent. |
A listen address that is not loopback or a unix socket path is refused. So is a port outside 1 to 65535, Host in headers, and a proxy address that another application or listener already uses. Each refusal gives the reason.
waap api mcp
Shadow MCP and agent discovery.
sh
waap api mcp -app NAME [-window 7d] [-json]
waap api mcp enforce -app NAME -path PATH [-name NAME] [-tools-from-traffic] [-m WHY] [-dry-run]- Without a subcommand, it lists the MCP servers seen in the window (at most 90d): path, status (
enforced,acknowledgedorunknown), name, transport, calls, errors, callers and clients. It also lists tools (calls, and whether an enforced server's tool list names it) and AI agents (verified or claimed). enforceputs a seen server under enforcement by adding it toapi.mcp.serversas a new version.-namedefaults to a name made from the server's name or path.-tools-from-trafficallows only the tools seen. Exit 1 when the path was not seen or the entry is invalid, for example when the path is already declared.
Declared servers are set with waap api list get|set -app NAME -list mcp.servers [-f FILE]. Setting: waap api set -app NAME discovery.flag_agents=log.
waap api-keys add
Creates an API key for a configured consumer. It prints the key once (wk_...). Only its hash is stored. The key reaches every inspection service within about 2 seconds.
sh
waap api-keys add -app NAME -consumer NAME [-comment TEXT] [-expires 720h|RFC3339]waap api-keys list
Lists keys: ID, application, consumer, prefix, created, expiry, state and comment. The keys themselves are never shown.
sh
waap api-keys list [-app NAME] [-json]waap api-keys revoke
Revokes a key. Calls with it are refused everywhere within about 2 seconds.
sh
waap api-keys revoke ID