Skip to main content
A workflow is a list of jobs. Each job runs one tool, and needs orders the jobs into a graph, the way GitHub Actions does. Jobs pass data along: a port scanner finds services, an HTTP probe finds which of them are web services, a web scanner scans those. When a workflow runs, OASM creates a run and, for every job, the scan tasks that connected workers carry out. Runs and their tasks are tracked in the Job Registry. Workflows live in two places:

Key concepts


The workflow file

The keys of jobs are the job ids; needs refers to them. A workflow is checked when it is saved: every needs must point at an existing job, the graph may not contain a cycle, and every input must be one the tool accepts. Errors are reported all at once.
Connector tools that declare a configuration need either a saved profile, a default profile in the workspace, or an inline config. A project pipeline with such a tool and none of the three is refused when it is saved.
You can read the file behind any workflow in the console: View workflow on a project’s workflow card, or the Workflow card of a run in the Job Registry, which shows the file the run was created from.

How a run executes

1

The run starts with a scope

The run records what it covers: the assets of a target, or the project assets it was started on. Every job of the run works only inside that scope.
2

Root jobs start

Every job without needs starts at once.
3

Each job fans out into tasks

When a job starts, it looks at every asset in the scope and creates one task per item of the best data kind it has (see How a job picks what its tool receives). Workers pick the tasks up and run them.
4

Dependent jobs follow

A job starts once every job it needs is done. It sees what earlier jobs found in the same run: httpx probes the ports naabu just opened, because a job looks up its inputs when it starts, not when the run starts.
5

The run ends

The run is finished when every job is done, failed or skipped.
A job can end skipped instead of running: The status of a run rolls up from its tasks: Cancelled when tasks were cancelled and none is still pending or running, otherwise Failed if any task failed, Running while any task runs, Completed when all tasks completed, Skipped when all were skipped, and Pending otherwise.

When a workflow runs: on:

The on: block says when a workflow starts on its own. Which entries apply depends on where the workflow lives.

Default workflows: target events

Default workflows run when something happens to a target:
The run scans the assets of that target. Re-scans started by the target’s schedule are recorded as scheduled runs; the others as manual.

Project workflows: schedules and project events

A workflow of a project says in its file when it runs:
Every run scans assets of the workflow’s project only. What each entry scans: Settings:
  • schedule entries are 5-field cron expressions in UTC, up to 20 per workflow. Each workflow has its own schedules.
  • Every event takes windowMinutes 0–1440 (default 10), maxAssets 1–5000 (default 200) and targetTypes, any of DOMAIN, IP, CIDR, GIT_ORG (default: all). Assets are gathered for windowMinutes, then scanned in runs of at most maxAssets; 0 starts a run right away.
  • project.run.completed also takes workflows (names of the project’s workflows to follow, up to 20; default: any other workflow) and status (success, failure; default [success]). A run counts as failure when a step failed or was skipped because a step it needed failed.
  • vulnerability.detected also takes severity (any of critical, high, medium, low, info; default [critical, high]).
  • An event key can also be set to true to take every default. Each event appears at most once per workflow.
  • A project workflow never uses on.target.
Runs that start other runs form a chain. A workflow is never started by its own run finishing or by its own findings — only the assets it brings into the project can start it again — and an event more than three hops down a chain starts nothing, so workflows that trigger each other cannot loop. You do not edit on: by hand: the trigger section of the workflow editor (When it runs) writes it. Through the API, creating a project or adding or editing a workflow sets it with the on field — schedule (a list of { cron, enabled }) and events (a list of { event, enabled, …settings }) — which replaces the whole block; leaving on out of an edit keeps the triggers unchanged. Whether each entry is on is kept outside the file, like disabling a workflow on GitHub: turning a trigger’s Active switch off leaves the file unchanged. Archiving the project turns every trigger off until it is reopened. See Triggers for the console walkthrough.
Each schedule is registered with the API’s job queue (Redis). When the API starts, it compares the queue with the database: missing schedules are registered again and schedules that no trigger uses any more are removed. Losing Redis data therefore does not silently stop project schedules — restart the API and they come back.

Run types

Every run records how it started, shown as Triggered by in the console:

Data kinds

Everything a tool takes or finds is one of these kinds: Apart from repositories, a connector always gets a single target value. What the kind changes is how precise it is: a tool that takes web must accept a URL there, port included.

What a tool declares

Each mode (category) of a tool declares what it takes and what it finds. The built-in tools: Connectors declare the same in their manifest — see Manifest:
A connector written before inputs and produces existed still works; each category falls back to what it was always given:

How a job picks what its tool receives

For every asset in the run’s scope, a job takes the first of its input kinds that has something for that asset, and creates one task per item of that kind. With input: [web, host]:
  • app.example.com has web services on 443 and 8443 → two tasks, on https://app.example.com and https://app.example.com:8443.
  • api.example.com was never probed → one task, on api.example.com.
So a tool gets the most precise data known about each asset, and still runs on hosts nothing has probed yet. An asset with nothing of any input kind gets no task; when no asset has anything, the job is skipped as nothing to scan.
URLs are stored per service. A URL discovery tool that runs on a whole host (gau, katana) gets each URL filed under the service of its port, or under the host’s main web service (443, then 80) when no port matches.

Choose the input

input narrows or reorders what a job’s tool accepts. It may only list kinds the tool declares in its inputs; anything else is refused when the workflow is saved.
In the project pipeline builder, the same choice is the Input of a tool.

Default workflows

Every workspace ships with these workflows. They run on target events, and they appear as templates when you create a project or add a workflow to one. The Fast scan (POST /api/vulnerabilities/scan) runs the nuclei step of the basic vulnerability scan: every web service httpx confirmed live, on its own scheme and port, and the host itself when discovery found no web service on it.

Project pipelines

In a project you usually build a workflow in the console instead of writing the file. The pipeline builder (Pick tools) puts each tool into a numbered step — Step 1 starts the run:
  • Tools in one step run in parallel; each tool of a step needs every tool of the previous step.
  • The builder offers up to 10 steps.
  • A job is named after its tool, or <tool>_<category> when one tool runs in several categories.
Workflows tab of a project: a workflow card named External sweep with the pipeline httpx then nuclei, a Manual only trigger chip, its last run marked Completed a day ago by Schedule, and View workflow, Edit and delete actions; next to it an Add workflow card offering a template, your own tools, or a copy

A project's Workflows tab: each card shows its pipeline, its triggers and its last run.

Steps map to a file like this:
Project workflows are owned by their project: they are named project-<projectId>-….yaml, edited only from that project, and deleted with it. Default workflows never run on project events, and project workflows never run on target events. A project run is always pinned to the project’s assets. A subdomain-discovery step inside a project pipeline therefore cannot fan out to the whole target; it only works on what the project covers.

API

Everything available in the console is also available through the API. See the API Reference tab. Workflows need the workflow.read / workflow.write permissions; project workflows are covered by project.read / project.write.

Best practices

  • Let data flow between stages. Put naabu before httpx and httpx before web scanners, so each tool works on what the previous one found in the same run.
  • Narrow web scanners to web. It scans every live web service on its real port and scheme instead of guessing https://host.
  • Keep [web, host] for coverage. When you also want hosts nothing has probed yet, keep host as a fallback.
  • Use allowFailure: false only where you need it. Fan-out jobs routinely hit unreachable inputs; the default keeps a run useful when a few tasks fail.
  • Check the run graph. In the Job Registry, each step shows why it was skipped — nothing to scan, a failed dependency, discovery disabled, or a cancelled run.
  • Connect enough workers. Tasks only progress when a worker picks them up — see Worker.

Projects

Scope, triggers and results of project workflows.

Job Registry

Runs, their graph, and every task they started.

Tools

The scanners and connectors a workflow runs.

Connector manifest

Declare a connector’s inputs and outputs.