Monitor, shadow and enforce

Every part of SecOps that can block or refuse something has a safe "watch only" setting, so you can see what it would do before it does it. There are six switches. They are separate, and each is set per account.

SwitchWatch-only settingActing settingWhereNew accounts
Protection (website traffic)Monitor onlyBlock attacksSettings › ProtectionBlock attacks
OWASP Core Rule SetReport onlyBlockSettings › OWASP Core Rule SetReport only
Each custom ruleMonitoring (report only)EnforcingSettings › Custom rulesDraft
Account protection (Risk API)ShadowEnforceSettings › Account protection › RulesShadow
Bot detectionRecord scores onlyUse it on sign-in, sign-up and password resetSettings › Bots and AI agentsRecord scores only
Traffic surgesRecord it onlySlow down busy visitors while it lastsSettings › Traffic surgesRecord it only

Protection: Monitor only or Block attacks

The main switch for website traffic (setting ENFORCEMENT_MODE, values monitor and block).

  • Block attacks: a request judged to be an attack gets a 403 and never reaches your origin. Rate limits answer 429 with Retry-After.
  • Monitor only: nothing is blocked. Every would-be block is forwarded and recorded on the Incidents page, marked monitor, and you are alerted.

Monitor only turns off every block, including your IP denylist, geo-blocking and path rules. Use it to tune a new site, not as a permanent state. The pill in the dashboard's top bar always shows which mode is on, and a change takes effect on the next request.

OWASP Core Rule Set: Report only, Block or Off

The OWASP CRS runs on every inspected request (setting CRS_MODE, values shadow, block and off).

  • Report only (shadow, the default): rules are scored and shown under Rule hits, nothing is blocked by them.
  • Block: a request whose anomaly score reaches the threshold (5 by default; one critical rule adds 5) is blocked, but only while Protection is on Block attacks.
  • Off: CRS is not run.

Add exclusions for false positives before you switch to Block. When you choose Block attacks while CRS is still on Report only, the dashboard offers Block with OWASP rules to turn both on.

Bot detection: record scores, then use them

SecOps scores how each visit behaves before a sign-in, sign-up or password reset: whether the page was loaded first, how long the form took, whether the browser sends what real browsers send. It also checks how the client opened its TLS connection where that is available (setting BOT_MODEL_MODE, values shadow, on and off).

  • Record scores only (shadow, the default): the score is shown on the request's details, and nothing changes for the visitor.
  • Use it (on): a visit the model flags adds the reason BOT_BEHAVIOUR to account protection. On its own that leads to a challenge, never a refusal. It only acts when account protection is in enforce mode.
  • Off: no visit is tracked.

The model was trained on simulated visits, not on your traffic. Leave it on Record scores only until you have compared its scores with your own visitors. Adding the small beacon script to your sign-in pages makes it much more accurate (Sign-in page beacon). AI agents that sign their requests (Web Bot Auth) are recognised by name and not scored as unknown bots (Signed bots and AI agents).

Traffic surges: record, then slow down

SecOps learns how much traffic your site usually gets at each hour of the week, and notices when the site as a whole suddenly gets far more, even when every visitor stays under its own limit (setting TRAFFIC_BASELINE_MODE, values shadow, enforce and off). It needs about two weeks of traffic before it judges anything.

  • Record it only (shadow, the default): surges are listed under Recent surges, and nothing is slowed down.
  • Slow down busy visitors (enforce): while a surge lasts, each visitor gets a tighter per-minute budget. Over it they get a 429 with Retry-After, never a block.

Custom rules: monitoring, then enforcing

A custom rule goes through draft, validation, monitoring and approval before it can block anything. While it is monitoring, matches are recorded on the traffic feed and on the rule's card, and nothing is blocked. See Custom rules.

Account protection: Shadow or Enforce

The Risk API's policy mode applies to logins, signups, password resets, wallet value-out and payment decisions.

  • Shadow (every new account starts here): SecOps scores each attempt, but decision is always allow. What it would have decided is in shadow_decision, and policy.mode is shadow. No cases are opened, so no case.opened webhooks are sent.
  • Enforce: decision is the real answer (challenge, review, deny for logins, signups and resets; hold or deny for value-out; recommended_action for payments). Reviews and denies open a case.

Default score bands for login, signup and password reset: challenge from 40, review from 70, deny from 90. Changing the mode or the bands is a proposal: it is backtested against your recent real decisions and applied only when a different admin approves it (self-approval is allowed only when your account has a single admin).

A safety net applies in enforce mode: when more than 30% of at least 100 assessments in 10 minutes are denies, the circuit breaker opens for 30 minutes. While it is open every deny is downgraded to review, so visitors are stepped up instead of refused, and the Account protection tab shows a red banner. An admin can close it early.

A safe rollout

  1. Start website traffic on Monitor only, with CRS on Report only, for a week or two.
  2. Read Incidents (entries marked monitor) and Rule hits. Fix each false alarm with the narrowest change: a CRS exclusion, a custom rule edit, or a higher threshold.
  3. Switch to Block attacks, then Block with OWASP rules. Watch the Overview block rate for an hour. Monitor only is one click away.
  4. For the Risk API, run in Shadow while you compare shadow_decision with what really happened, report outcomes with POST /v1/risk/events, then propose Enforce.
  5. Leave Bot detection and Traffic surges recording for at least two weeks. Turn them on once their scores and surges match what you know about your traffic.