Reference: Sensor Selector Expressions
- 22 May 2024
- 1 Minute to read
- Print
- DarkLight
This documentation version is deprecated, please click here for the latest version.
Reference: Sensor Selector Expressions
- Updated on 22 May 2024
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback!
Many components in LimaCharlie require selecting a set of Sensors based on some characteristics. The selector expression is a text field that describe what matching characteristics the selector is looking for.
The following fields are available in this evaluation:
sid: the Sensor IDoid: the Organization IDiid: the Installation Key IDplat: the Platform name (see platforms)ext_plat: the Extended Platform name (see platforms)arch: the Architecture name (see architectures)enroll: the Enrollment as a second epoch timestamphostname: the hostnamemac_addr: the latest MAC addressalive: second epoch timestamp of the last time the sensor connected to the cloudext_ip: the last external IPint_ipthe last internal IPisolated: a boolean True if the sensor's network is isolatedshould_isolate: a boolean True if the sensor is marked to be isolatedkernel: a boolean True if the sensor has some sort of "kernel" enhanced visibilitydid: the Device ID the sensor belongs totags: the list of tags the sensor currently has
The following are the available operators:
==: equals!=: not equalin: element in list, or substring in stringnot in: element not in list, or substring not in stringmatches: element matches regular expressionnot matches: element does not match regular expression
Here are some examples:
- all sensors with the test tag:
test in tags - all windows boxes with an internal IP starting in 10.3.x.x:
plat == windows and int_ip matches `^10\.3\..*` - all 1password sensors, strings starting with a number need to be quoted with a backtick:
plat == `1password` - all linux with network isolation or evil tag:
plat == linux or (isolated == true or evil in tags)
Was this article helpful?