English

Rule Exceptions

A rule exception tells Aikido to ignore matching activity for the rules you pick. Use exceptions to suppress known false positives, such as a deployment tool that legitimately runs a new binary in a container.

Rule exceptions apply to your whole workspace. They have no cluster or VM scope, so a condition such as a namespace or pod name suppresses matching activity on every cluster and VM that has the same value. Use specific conditions to avoid hiding activity you want to see.

Prerequisites

  • The admin role, to add, edit, or delete rule exceptions.

View rule exceptions

Go to Runtime Sensors → Rule exceptions to see each exception with its name, its conditions, and the number of rules it applies to. Click the menu on a row to edit or delete the exception.

Add a rule exception

  1. Open the form

    Go to Runtime Sensors → Rule exceptions and click Add Rule Exception. You can also open a detection and click Actions → Add Rule Exception. Aikido then fills in the name and conditions from the detection, which you can change.

  2. Name the exception

    Enter a name that explains why the exception exists.

  3. Define the conditions

    Select a field, an operator, and a value. Click Add Condition to add more.

    All conditions in one exception must match for the exception to apply. To match any of several conditions, create a separate exception for each one.

  4. Pick the rules

    In Rules to Apply to, search for and select one or more rules. The exception applies to each selected rule.

  5. Save the exception

    Click Save.

Fields

The field names match the names in the Fields list of a detection's event, so you can copy values from there.

FieldMatches
proc.nameProcess name
user.nameUser name
k8s.ns.nameKubernetes namespace
k8s.pod.nameKubernetes pod name
container.image.repositoryContainer image
fd.nameFile name
fd.directoryFile directory

Operators

OperatorMatches when the field
=Equals the value.
!=Doesn't equal the value.
startswithStarts with the value.
containsContains the value.
globMatches a pattern with a wildcard, e.g. web-*.
inEquals any value in a comma-separated list, e.g. kube-system, monitoring.

Limits

  • A value can be at most 250 characters.
  • A value can't contain parentheses or line breaks.
  • An exception needs a name, at least one complete condition, and at least one rule.

Pod names often end in a generated suffix. When you create an exception from a detection, Aikido uses glob with a pattern such as web-* for those pods, so the exception keeps matching after a restart.

Troubleshooting

A rule exception doesn't suppress a detection

Check that the exception lists the rule in Rules to Apply to, and that every condition matches the detection. Conditions are combined, so one condition that doesn't match is enough to stop the exception from applying. Open the detection and compare the namespace, pod, process, and file values with your conditions.

Runtime Sensors Overview Detection Rules