elastic / detection-rules

https://www.elastic.co/guide/en/security/current/detection-engine-overview.html
Other
1.92k stars 492 forks source link

Refresh Integration Manifest and Schema #4001

Closed shashank-elastic closed 1 month ago

shashank-elastic commented 1 month ago

Pull Request

Issue link(s): https://github.com/elastic/detection-rules/issues/3994

Summary - What I changed

How To Test

Contributor checklist

protectionsmachine commented 1 month ago

Enhancement - Guidelines

These guidelines serve as a reminder set of considerations when addressing adding a new schema feature to the code.

Documentation and Context

Code Standards and Practices

Testing

Additional Schema Related Checks

terrancedejesus commented 1 month ago

@shashank-elastic

'ml_is_dga.malicious_prediction' in package_schemas['dga']
True

I recall the structure being package_schemas -> package -> version -> key:field_type. Did we verify that the field exists int he latest package?

shashank-elastic commented 1 month ago

@shashank-elastic

'ml_is_dga.malicious_prediction' in package_schemas['dga']
True

I recall the structure being package_schemas -> package -> version -> key:field_type. Did we verify that the field exists int he latest package?

yes I got this from the debugging flattened structure.

Here is the field from latest version

{
    "dga-2.0.4": {
        "data_stream.type": "constant_keyword",
        "data_stream.dataset": "constant_keyword",
        "data_stream.namespace": "constant_keyword",
        "@timestamp": "date",
        "ml_is_dga.malicious_prediction": "long",
        "ml_is_dga.malicious_probability": "float"
    },
    "jobs": [
        "dga_high_sum_probability"
    ]
}

Overall Schema for DGA

{
    "1.0.0": {
        "jobs": [
            "dga_high_sum_probability"
        ]
    },
    "1.0.1": {
        "jobs": [
            "dga_high_sum_probability"
        ]
    },
    "1.1.0": {
        "jobs": [
            "dga_high_sum_probability"
        ]
    },
    "2.0.0": {
        "dga-2.0.0": {
            "data_stream.type": "constant_keyword",
            "data_stream.dataset": "constant_keyword",
            "data_stream.namespace": "constant_keyword",
            "@timestamp": "date",
            "ml_is_dga.malicious_prediction": "long",
            "ml_is_dga.malicious_probability": "float"
        },
        "jobs": [
            "dga_high_sum_probability"
        ]
    },
    "2.0.1": {
        "dga-2.0.1": {
            "data_stream.type": "constant_keyword",
            "data_stream.dataset": "constant_keyword",
            "data_stream.namespace": "constant_keyword",
            "@timestamp": "date",
            "ml_is_dga.malicious_prediction": "long",
            "ml_is_dga.malicious_probability": "float"
        },
        "jobs": [
            "dga_high_sum_probability"
        ]
    },
    "2.0.2": {
        "dga-2.0.2": {
            "data_stream.type": "constant_keyword",
            "data_stream.dataset": "constant_keyword",
            "data_stream.namespace": "constant_keyword",
            "@timestamp": "date",
            "ml_is_dga.malicious_prediction": "long",
            "ml_is_dga.malicious_probability": "float"
        },
        "jobs": [
            "dga_high_sum_probability"
        ]
    },
    "2.0.3": {
        "jobs": [
            "dga_high_sum_probability"
        ]
    },
    "2.0.4": {
        "dga-2.0.4": {
            "data_stream.type": "constant_keyword",
            "data_stream.dataset": "constant_keyword",
            "data_stream.namespace": "constant_keyword",
            "@timestamp": "date",
            "ml_is_dga.malicious_prediction": "long",
            "ml_is_dga.malicious_probability": "float"
        },
        "jobs": [
            "dga_high_sum_probability"
        ]
    }
}