Cloud SIEM for AWS Fundamentals Certification / 03 / 07

Security Monitoring and Threat Detection

What this domain covers

This domain is the core of the exam and covers how to build detection rules and when to use each kind. The points to learn are which detection method fits which threat, how to write conditions and severity, when a signal opens and closes, and how to test a rule before putting it into production. What you can and cannot change in out-of-the-box rules, rule deprecation and signal locking, MITRE ATT&CK tags, and matching against threat intelligence are also within the scope of the exam. If you learn the names of the detection methods together with their use cases, questions that ask you to choose a method from a scenario will not trip you up.

Topics listed in the official guide

  • Detection rule components and configuration
  • Managing out-of-the-box detection rules
  • Creating and refining custom rules
  • Signal investigation and triage
  • Rule testing and validation
  • Threat hunting and detection coverage

Key points

  • New Value generates a signal when a value appears that was never seen during the learning period
  • To find a source that has stopped, use a Threshold lower-bound condition (such as a < 1). When grouped, only groups that have had a match are evaluated
  • In conditions, write the query label before the operator (a > 3 can be written, but 3 < a cannot)
  • Conditions are evaluated from the top in order, and the first matching condition creates the signal
  • The setting that lowers severity for non-production lowers the severity of signals whose env starts with staging, test, or dev by one level
  • Make the evaluation window less than or equal to the keep alive and the maximum signal duration
  • Content Anomaly handles anomalies in field content, Impossible Travel handles impossible movement, Sequence handles events in a set order, and Third Party handles alerts from other products
  • The frequency of a Scheduled rule is written in RRULE and must be one day or longer. To test on past data use a Historical Job, and to test with sample logs use a Unit Test
  • The original query of an out-of-the-box rule cannot be edited, and you extend it by adding your own queries
  • Signals are locked 30 days after they are created

Terms and concepts

Threshold and lower-bound conditions

A detection method that compares the number of matching events with a threshold. Besides upper bounds such as a > 3, lower-bound conditions such as a < 1 let you find that logs have stopped. A lower-bound condition is evaluated only after there has been at least one match since the rule was enabled.

New Value

Generates a signal when a tracked attribute takes a value never seen during the learning period. For example, it learns the countries each user logs in from and finds logins from a new country. A new value is learned after it appears.

Anomaly and Content Anomaly

Anomaly finds sudden increases in the number of events, also taking seasonality into account. Content Anomaly finds field content that differs from usual, such as encoded commands or unusually long URLs, using a similarity threshold (70% by default).

Impossible Travel

Calculates the travel speed required from the locations and times of consecutive logins and finds those that would be impossible for a person to travel. You use it to find stolen credentials.

Sequence and Third Party

Sequence generates a signal only when actions that are each normal on their own occur in a set order for the same principal. Third Party maps alerts from other security products to Cloud SIEM signals and sets the severity according to attributes.

Conditions and severity

Conditions are written using query labels (a, b, and so on), evaluated from the top in order, and the first one that matches becomes the signal. Severity ranges from INFO to CRITICAL, and there is a setting that lowers it by one level in non-production environments.

Evaluation window, keep alive, and maximum duration

The evaluation window is the span of time in which matches are counted. A signal stays open and is updated as long as there are matches within the keep alive, and it closes once the maximum duration since the first detection has passed. Make the evaluation window less than or equal to these two.

Rule types and testing

Rules come in Real-time, Scheduled (a frequency of one day or longer in RRULE), and Historical Job types. A Historical Job tests once against past logs, and its results can be turned into signals with Convert to Signal. A Unit Test checks matches with sample logs.

Handling and deprecating out-of-the-box rules

In out-of-the-box rules you can change the name, query extensions, severity, and playbook, but you cannot edit the original query. Deprecated rules can be cloned and re-enabled during the retention period, after which they are deleted.

MITRE ATT&CK tags and threat intelligence

To show a custom rule on the MITRE ATT&CK Map, attach a tactic tag and a technique tag as a pair, such as tactic:TA0001-Initial-Access and technique:T1566-Phishing. Logs that match threat intelligence get threat_intel attributes, and you can find them with @threat_intel.indicators_matched:*.

Check your understanding

Check what you have learned with 5 questions