Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security Solution] Add source_updated_at field to PrebuiltRuleAsset #176286

Open
Tracked by #179907
banderror opened this issue Feb 6, 2024 · 3 comments
Open
Tracked by #179907

[Security Solution] Add source_updated_at field to PrebuiltRuleAsset #176286

banderror opened this issue Feb 6, 2024 · 3 comments
Labels
Feature:Prebuilt Detection Rules Security Solution Prebuilt Detection Rules area Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.

Comments

@banderror
Copy link
Contributor

banderror commented Feb 6, 2024

Epic: #174168
Related to: elastic/detection-rules#2826

Summary

We're going to add a new optional field source_updated_at to prebuilt rule assets (saved objects of type security-rule) we ship via the package with prebuilt rules. The TRADE team is working on it as part of elastic/detection-rules#2826.

Here's an example of this field for the Linux Restricted Shell Breakout via Linux Binary(s) prebuilt rule asset:

{
  "security-rule": {
    "rule_id": "52376a86-ee86-4967-97ae-1a05f55816f0",
    "name": "Linux Restricted Shell Breakout via Linux Binary(s)",
    "description": "Identifies the abuse of a Linux binary to break out of a restricted shell or environment by spawning an interactive system shell. The activity of spawning a shell from a binary is not common behavior for a user or system administrator, and may indicate an attempt to evade detection, increase capabilities or enhance the stability of an adversary.",
    "type": "eql",
    "language": "eql",
    "index": ["logs-endpoint.events.*"],
    // other rule fields...
    "version": 112,
    "elastic_update_date": "2024-01-29T00:00:00.000Z"
  },
  // core saved object fields...
}

This field should be optional in the PrebuiltRuleAsset schema.

The field's value will be a string formatted in the standard ISO datetime format, so the schema should probably be z.string().datetime() or something like that. Time of the day is not required and can be set to T00:00:00.000Z.

See also requirements for the package itself: elastic/detection-rules#2826 (comment).

@banderror banderror added Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Rule Management Security Detection Rule Management Team Feature:Prebuilt Detection Rules Security Solution Prebuilt Detection Rules area labels Feb 6, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management)

@banderror banderror changed the title [Security Solution] Add elastic_update_date field to PrebuiltRuleAsset [Security Solution] Add source_updated_at field to PrebuiltRuleAsset Feb 6, 2024
@banderror banderror changed the title [Security Solution] Add source_updated_at field to PrebuiltRuleAsset [Security Solution] Add source_updated_at field to PrebuiltRuleAsset Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Prebuilt Detection Rules Security Solution Prebuilt Detection Rules area Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
Projects
None yet
Development

No branches or pull requests

2 participants