top of page
Search

SentinelOne Singularity Operations Center - Detections and the Three Kinds of Custom Rule

5 minutes ago
8 min read

Before starts


If you remember STAR rules from my previous series, its kind a same but also differnet. Lets talk in depth

Custom rules are the one part of the platform that is entirely yours, which is exactly. The Detections page is where you find that out, and it is a much better tool for the job than the old Custom Rules page.

Where it is


In the sidebar, click Detections. Ops Center only, from platform version S-25.1.5, agent 3.4 on Windows and macOS or 4.0 on Linux, and it exists in the Global, Account and Site scopes.


Two tabs.

  • Custom is your own rules, which is where STAR lives now.

  • Library is out-of-the-box content written by the SentinelOne research team.

Alerts from both land on the Unified Alerts page.

(We talked about about Alerts in series SentinelOne Singularity Operations Center - Alerts and the One Feature (Automatic actions)That Earns Its Placel)

The single most useful thing on the page is the Generated Alerts or Raised Alert column.

It is a link: click the number and you get that rule's alerts, with the alert name set to the rule name. That is the fastest audit you can run on your own rule set, and it is what found everything above.




There are three kinds of custom rule now


This is the real change from the old console, and most people have not noticed it. A custom rule used to mean one thing: a query matched against a single event as it arrives.

Rule type

Real time

Time window

What it is for

Single event

Yes

None

One event is enough to care about

Correlation

Yes

10 minutes to 12 hours

Several behaviours that only matter together

Scheduled

No

Up to 30 days of look-back

Slow patterns, aggregations, joins


All three are written in S1QL 2.0, all three take an expiration date within six months or no expiration at all, and all three can be saved as a draft that stays inert until you enable it.


Single event rules

The familiar one. The query runs at ingestion and a match raises an alert. (Example Like STAR Rule)


Two things in the wizard matter.


Simulate condition estimates how many alerts the rule would have produced over seven days, using your own recent data. There is no excuse now for activating a rule and finding out a month later that it fires a hundred times a day.



The Response step decides whether the rule only alerts or also acts:


  • Treat as threat applies either the endpoint's Suspicious Threat policy or its Malicious Threat policy. Worth knowing: the actual behaviour then depends on whether that endpoint's policy is Detect or Protect, not on the rule.

  • Network Quarantine disconnects the endpoint on a match, and you reconnect it by hand.

  • Marketplace XDR response actions are available too.


Active response needs permissions beyond the STAR one:

  • Endpoints: Disconnect from network for quarantine,

  • Endpoint Threats: Mark suspicious

  • Endpoint Threats: Mark threat for the two policy options.

Without them the save fails with a 403 at the end of the wizard.



Correlation rules

Several queries under one rule, alerting only when enough of them match inside a window. The window is 10 minutes to 12 hours, default 1 hour.

  • Match count lets you require repetition, so five failed logins in ten minutes is a detection and one is not.

  • Match in order requires the sequence, and you should leave it off unless the chain genuinely has to happen in that order.


The one decision that makes or breaks the rule is the correlation entity, the thing the rule treats as "the same" across events. Use a username, an agent UUID, a hostname, a source IP, or a composite such as agent UUID plus process ID. Never use anything that changes on every event, so no timestamps, event IDs or per-event UUIDs.


Then the trap. If a field in your entity can hold several values in one event, the rule splits that event into one entity per combination, and each can fire its own alert. User alice with hosts web-01, web-02, web-03 is three entities and up to three alerts for one incident. Prefer single-valued fields and keep composites small.



The hard limits:

  • A rule tracking more than 2,000,000 entities gets deactivated. Set the entity to Process on a broad query and this will happen to you.

  • Do not start a query with !, and do not write os = "windows".

  • Queries cap at 8,192 characters.

  • Set the window above your ingestion lag, not just the attack timing. Agents buffer and integrations fall behind during bursts, so a ten-minute window misses a late event from a pattern that really did happen ten minutes apart. One hour is the safer default.


Scheduled rules

This type did not exist before, and it is the one I would spend my time on. It runs a query over historical data on an interval and alerts on a threshold instead of a match.


  • Look back is how far back each run reads: 1 minute to 30 days. Run every is how often it runs: 1 minute to 24 hours, and a long look-back limits you to the hour options.

  • Threshold is greater than, less than, or equal to a count. Less than is how you detect the absence of something, which a real-time rule cannot do at all.

  • The threshold counts different things depending on your query. With | group it counts rows in the grouped table. Without it, it counts matching events. Same number in the box, completely different rule.

  • Generate alert per row gives one alert per matching row, but more than 100 rows gets grouped into one alert anyway.

  • Deduplication logic suppresses repeats while the result set has not changed, which is the sane default for an ongoing condition. Above 1,000 rows the comparison cannot run, so dedup is silently skipped and you get an alert every execution.

  • Limit of 50 scheduled rules per scope. Lookup tables work but cap at 10,000 rows, do not support CIDR or wildcards, and only work at account scope.


One contradiction I will flag rather than paper over: the Detections overview says simulation is not offered for scheduled rules, while the scheduled rules page documents a Simulate condition over the look-back. Check your own console before you plan around it.



The cool-off period, and why I got it wrong

When I found my three noisy rules, cool-off was the first thing I reached for. I was wrong, and the reason is worth printing.


Cool-off suppresses repeat alerts from a rule for up to 24 hours after the first one. But it is applied per rule ID plus account ID — not per endpoint, not per site, not per entity. The documentation is explicit that alerts are suppressed even when they come from different entities.


  • On an account-scope rule covering dozens of sites, one alert anywhere silences the rule everywhere. One organisation's sanctioned remote-support tool firing at 09:00 would hide a real remote-access intrusion somewhere else at 09:30.

  • Suppressed alerts are not stored. You cannot go back and see what you missed. The best you can do is paste the rule query into Event Search and hunt raw events.

  • Mitigation actions do not run on suppressed alerts. A rule set to quarantine will not quarantine anything it suppressed.

  • It cannot be set on a rule still written in S1QL 1.0.


Use it on a single-site rule covering a sustained pattern, where one alert per period really is enough. Do not use it on a broad dual-use detection, which is where the volume usually is. Narrow the query or use automatic alert actions instead.


The Library tab

I suspect this is the most under-used screen in the product. It is a catalogue of detections written and maintained by the SentinelOne research team, listed with severity, MITRE tactics, data source, status and alert count.

  • They do not count toward your STAR rule limit. Activate as many as you like.

  • They never mitigate automatically. They alert and you decide. If you want a response attached, duplicate the rule and configure the copy as your own.

  • You can read the logic of most of them but cannot edit one in place. Rules with hidden logic cannot be duplicated at all.

  • They only work with data ingested through the Marketplace integrations they were written for.


Since S-25.4.5 some ship labelled Emerging threat or Core, and the emerging ones are enabled by default in your tenant. You can switch any of them off and your opt-out survives platform updates. Triggered alerts carry the label, from S-26.1.1 you can filter on it, and every enable or disable writes an activity log entry — which is how you find out who turned something on.


Inheritance runs downward.

Library rules are set at your highest available scope and inherited below, and while inheritance is on you can only enable and disable them at that higher scope. To let one site pick its own, go to the site and click Change Configurations. Re-enable inheritance later and that site's choices are overwritten by the parent's. Groups cannot break inheritance at all.



Two things worth knowing if you run this at scale

You can hide a rule's logic. A rule created with hideLogic: true keeps its query invisible to anyone without the Perform Advanced Actions permission, while still running and alerting normally.

Admin and IR Team roles have that permission by default, and even with it you cannot read the logic of a rule scoped above your own level. Your SentinelOne representative has to switch the feature on first. It exists mainly so service providers can deploy proprietary detections into customer tenants.


You can manage rules from Git. From S-26.3.6, Detection-as-Code syncs custom rules from a repository: diff returns a plan, apply writes it. The thing to understand before you try it is that the ZIP you send is the complete desired state, so a rule missing from it is treated as deleted in every scope it was deployed to. A rule managed this way cannot be edited in the console either — only enabled or disabled.


The deadline to go and check today

S1QL 1.0 stops working on or after 15 February 2027 for standard SaaS, and 26 April 2027 for GovCloud. Self-hosted is not affected.


Existing 1.0 rules get migrated to 2.0 automatically, so nothing breaks on the day. The catch is on either side of that:


  • In the UI, any rule you open and re-save afterwards must validate as 2.0, so an old query starts throwing errors the moment you try to edit it.

  • On the API, queryLang goes away. Requests that set it, or that relied on it defaulting to 1.0 when omitted, get rejected. If you have scripts creating rules, that is the part to go and read.



So what do I think

The old page let you write a query and get an alert. This one lets you correlate behaviours across a window, query thirty days of history, alert on a threshold instead of a match, simulate before activating, use a maintained library you are not paying extra for, and manage the lot from Git. Those are not renamed menus, and that is why I call this series an extended version of the original course rather than a rewrite.


Simulate before you activate. Do not reach for cool-off on a broad rule.

I will meet you in the next article. Till then, keep learning.



                                                                    - written from hands-on work with the console, By Dean



--------------------------------------------------Cyberengage--------------------------------------

 
 
 

Comments


Ready to discuss:

- Schedule a call for a consultation

- Message me via "Let's Chat" for quick questions

​

Let's connect!

Subscribe to our newsletter

Connect With Me:

  • LinkedIn
  • Medium

© 2023 by Cyberengage. All rights reserved.

bottom of page