Atlantiraptor Docs

Windows.Remediation.QuarantineMonitor

Type: Client event (monitoring)

Periodically applies and maintains Windows IPsec quarantine policy on the endpoint via an event query that will ensure the client stays quarantined.

Re-calculates the quarantine every 10 minutes, by default, to account for changes in DNS/connectivity details. When the query is terminated, the quarantine is undone.

Required permissions: EXECVE, NETWORK

Precondition: SELECT OS FROM info() WHERE OS = "windows" AND version(function="atexit") >= 0

Parameters

Name Type Default Description
PolicyName string VelociraptorQuarantine
RuleLookupTable csv (see the artifact source)
MessageBox string Optional message box notification to send to logged in users. 256 character limit.
ReloadPeriod int 600 Reload the ipsec policy every this many seconds on the endpoint.

Source

Defined in artifacts/definitions/Windows/Remediation/QuarantineMonitor.yaml.

name: Windows.Remediation.QuarantineMonitor
description: |
  Periodically applies and maintains Windows IPsec quarantine policy
  on the endpoint via an event query that will ensure the client stays
  quarantined.

  Re-calculates the quarantine every 10 minutes, by default, to
  account for changes in DNS/connectivity details. When the query is
  terminated, the quarantine is undone.

type: CLIENT_EVENT

required_permissions:
  - EXECVE
  - NETWORK

parameters:
  - name: PolicyName
    default: "VelociraptorQuarantine"
  - name: RuleLookupTable
    type: csv
    default: |
        Action,SrcAddr,SrcMask,SrcPort,DstAddr,DstMask,DstPort,Protocol,Mirrored,Description
        Permit,me,,0,any,,53,udp,yes,DNS
        Permit,me,,0,any,,53,tcp,yes,DNS TCP
        Permit,me,,68,any,,67,udp,yes,DHCP
        Block,any,,,any,,,,yes,All other traffic
  - name: MessageBox
    description: |
        Optional message box notification to send to logged in users. 256
        character limit.
  - name: ReloadPeriod
    description: Reload the ipsec policy every this many seconds on the endpoint.
    default: "600"
    type: int

precondition:
  SELECT OS FROM info() WHERE OS = "windows"
     AND version(function="atexit") >= 0

sources:
  - query: |
      -- When the query is done we unset the policy.
      LET _ <= atexit(query={
         SELECT * FROM Artifact.Windows.Remediation.Quarantine(
           PolicyName=PolicyName, RemovePolicy=TRUE)
      })

      SELECT * FROM foreach(
        row={
           SELECT * FROM clock(period=ReloadPeriod, start=now())
           WHERE log(message="Setting quarantine policy")
        },
        query={
          SELECT * FROM Artifact.Windows.Remediation.Quarantine(
            PolicyName=PolicyName, RuleLookupTable=RuleLookupTable,
            MessageBox=MessageBox)
       })

Edit this page on GitHub

© 2026 Atlant Security EOOD. Atlantiraptor is free software under the GNU Affero General Public License v3. It is based on Velociraptor by Velocidex, and keeps its copyright notices. Velociraptor is a trademark of its owner; Atlantiraptor is not affiliated with or endorsed by it.