Policy library

Review deletes and exports outside business hours

Covers: Any industry (operational control)

Use in VulnifyOpens in monitor mode by default. Nothing is created until you click Apply.

What it does

Deletes and exports outside Monday to Friday, 09:00 to 18:00 in your org time zone wait for approval. Ships in monitor mode.

Default mode in this template: MONITOR. The “Use in Vulnify” link preselects monitor mode; you can switch to enforce before applying.

Policy

Policy JSON (API)
{
  "name": "review-off-hours-deletes-and-exports",
  "description": "Deletes and exports outside Monday to Friday, 09:00 to 18:00 in your org time zone wait for approval. Ships in monitor mode.",
  "enabled": true,
  "action": "ANY",
  "condition": {
    "outsideBusinessHours": true,
    "anyOf": [
      {
        "action": "DELETE_DATA"
      },
      {
        "action": "EXPORT_DATA"
      }
    ]
  },
  "decision": "REVIEW",
  "mode": "MONITOR"
}
Policy YAML (CLI policy file)
apiVersion: vulnify.io/v1
kind: Policy
metadata:
  name: review-off-hours-deletes-and-exports
spec:
  description: "Deletes and exports outside Monday to Friday, 09:00 to 18:00 in your org time zone wait for approval. Ships in monitor mode."
  enabled: true
  action: ANY
  condition:
    outsideBusinessHours: true
    anyOf:
      - action: DELETE_DATA
      - action: EXPORT_DATA
  decision: REVIEW
  mode: MONITOR

Example test cases

CaseInputExpected decision
export at 03:00 (depends on run time){"agent":"example-agent","action":"EXPORT_DATA","resource":"orders-db","recordsAffected":50}REVIEW if run outside business hours (monitor mode: recorded, action allowed)

Try this template on your own agents, in monitor mode first.

Use in Vulnify