Skip to main content
In this tutorial you install OASM on your own machine, create your account and workspace, add a domain, and watch OASM discover what sits behind it. At the end you will have a real inventory of hosts, open ports, web services and screenshots — and, if you want, your first vulnerability findings. Time: about 10 minutes, plus a few minutes of scanning. You need: a terminal and a browser.

Before you start

1

Docker

Docker Engine 24 or newer with Docker Compose v2 (Docker Desktop on macOS and Windows). Check with docker compose version.
2

A machine with room to scan

At least 4 CPU cores, 4 GB of RAM (8 GB recommended) and 20 GB of free disk.
3

A domain you are allowed to scan

A domain you own, or one you have written permission to test. OASM will actively probe everything it finds under it.
Scanning systems you do not own or have no permission to test can be illegal. If you only want to try OASM, use a domain of your own.

  1. Download OASM

The oasm-docker repository contains everything needed to run the whole platform with Docker Compose.

  1. Generate your secrets

OASM refuses to start with default secrets. Generate three random values and put them in .env:
Leave BASE_URL empty while you run OASM on localhost.

  1. Start the platform

make pulls the images and starts every service: the web console, the core API, three scan workers, PostgreSQL, Redis, object storage and a geo-IP service. Without make, run docker compose pull && docker compose up -d; on native Linux, first set DOCKER_GID in .env to the output of stat -c '%g' /var/run/docker.sock. When the containers are up, check that the API is ready:
The command returns a healthy response. The first start can take a minute while the database is prepared.

  1. Create your admin account

Open http://localhost:6276/init-admin. The Create your first admin form appears only once, on a fresh installation.
  1. Enter your email address and a password of at least 8 characters, confirm the password, and click Create account.
  2. OASM takes you to the sign-in page. Sign in with the same email address and password.
You are signed in as the platform administrator.

  1. Create your workspace

A workspace holds everything you scan and find, and the people who work on it. OASM asks you to create the first one straight after you sign in. Keep the suggested name or type your own, then click Create workspace.
The Start discovery page opens.

  1. Add your domain and start discovery

On the Start discovery page, choose Root domain, enter your domain — for example example.com — and click Start Discovery. That is all you have to do. Adding a domain target starts OASM’s built-in domain discovery workflow on its own. The bundled workers then run four tools, each one working on what the previous one found:
The target page opens and shows Discovering assets… while the first discovery runs.

  1. Watch the scan

Open Jobs Registry in the sidebar to see every tool execution: each job waits for a free worker, runs, and finishes as completed or failed. A small domain usually finishes within a few minutes; a large one with hundreds of subdomains takes longer.
The Jobs Registry page listing tool executions of a discovery run with their tool, target, status and duration

  1. Explore what OASM found

When the run is finished, open Assets. Every row is a web service OASM found, with its host, port, title, status code, technologies, TLS certificate and a screenshot. The tabs above the list pivot the same inventory by host, port, IP address, technology or certificate, and Graph shows how it all connects.
The Assets page grouped by technology, listing detected technologies with the number of services that run each one
Then open Dashboard for the overview of your attack surface: hosts, exposed ports, technologies, certificates and, once you have findings, your security score.

  1. Find your first vulnerabilities (optional)

Discovery maps what you expose; it does not attack it. To check the services for known vulnerabilities, open your target, go to the Vulnerabilities tab and click Fast scan. OASM runs Nuclei against every live web service it found.
Findings appear in the target’s Vulnerabilities tab and on the Vulnerabilities page, each with its severity and the evidence the scanner saw.

What you just did

In ten minutes you went through the core loop of OASM: How OASM works follows the same journey and explains what happens at each stage, and what comes after it.

Troubleshooting

Run docker compose logs core-api. The most common cause is a missing or default secret: check that ENCRYPTION_KEYS, BETTER_AUTH_SECRET and OASM_CLOUD_APIKEY are set to random values of at least 32 characters, then run make again.
Open Workers: the bundled workers should be connected. If they are not, run docker compose logs oasm-worker. A permission denied error on the Docker socket means DOCKER_GID does not match the group of /var/run/docker.sock on your host.
Discovery only finds what is publicly reachable. A domain without public subdomains or open web ports yields a small inventory — that is a good result. Check the job list for failed jobs, and see Targets for what each target type discovers.
The page is only available until the first admin exists. If an admin was already created, sign in at http://localhost:6276/login instead.

Next steps

Understand how it works

The mental model behind what you just saw.

Keep it scanned

Create a project to rescan your assets on a schedule.

Invite your team

Add members and give them the right permissions.

Get alerted

Send new assets and findings to Slack, Telegram or a webhook.

Ask the AI agent

Connect a model and ask questions about your attack surface.

Go to production

Public URL, secrets, backups, scaling and upgrades.