-
Notifications
You must be signed in to change notification settings - Fork 606
Renovate Updates #5258
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
Open
shashank-elastic
wants to merge
8
commits into
main
Choose a base branch
from
renovate_updates
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Renovate Updates #5258
+12
−12
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Enhancement - GuidelinesThese guidelines serve as a reminder set of considerations when addressing adding a feature to the code. Documentation and Context
Code Standards and Practices
Testing
Additional Checks
|
5 tasks
Contributor
Author
Wed 29 Oct Update
Performing a rule import to kibana...
Loaded config file: /Users/shashankks/elastic_workspace/detection-rules/.detection-rules-cfg.json
█▀▀▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ █▀▀▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄
█ █ █▄▄ █ █▄▄ █ █ █ █ █ █▀▄ █ █▄▄▀ █ █ █ █▄▄ █▄▄
█▄▄▀ █▄▄ █ █▄▄ █▄▄ █ ▄█▄ █▄█ █ ▀▄█ █ ▀▄ █▄▄█ █▄▄ █▄▄ ▄▄█
/Users/shashankks/elastic_workspace/detection-rules/detection_rules/index_mappings.py:344: ElasticsearchWarning: No limit defined, adding default limit of [1000]
response = elastic_client.esql.query(query=query)
8 rule(s) successfully imported
- 2cc8f325-e1b1-4201-8b8d-88a51c94992b
- 4c589d81-2622-4036-8cc7-372ea8f0e038
- bcbd5906-fc38-4cbe-8b54-c2dba5d4b127
- 2c6c5352-11cb-40a5-9294-e61ef5f1954f
- 742feb36-ac4c-45e0-b8a5-3b3cfa66b6d2
- 8a3296e2-4a74-4d51-b819-8d4e58377bf7
- 2390c9dd-ad90-4af6-97a4-1d607ba0f092
- d46a29ca-9b5b-4cbd-b11f-35c6b59f207b
1 rule(s) failed to import!
- 7e0f6dae-5847-465f-89e9-a6de0e9ef918: (400) params invalid: [
{
"code": "invalid_union",
"unionErrors": [
{
"issues": [
{
"received": "esql",
"code": "invalid_literal",
"expected": "query",
"path": [
"type"
],
"message": "Invalid literal value, expected \"query\""
},
{
"received": "esql",
"code": "invalid_enum_value",
"options": [
"kuery",
"lucene"
],
"path": [
"language"
],
"message": "Invalid enum value. Expected 'kuery' | 'lucene', received 'esql'"
}
],
"name": "ZodError"
},
{
"issues": [
{
"received": "esql",
"code": "invalid_literal",
"expected": "saved_query",
"path": [
"type"
],
"message": "Invalid literal value, expected \"saved_query\""
},
{
"received": "esql",
"code": "invalid_enum_value",
"options": [
"kuery",
"lucene"
],
"path": [
"language"
],
"message": "Invalid enum value. Expected 'kuery' | 'lucene', received 'esql'"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"savedId"
],
"message": "Required"
}
],
"name": "ZodError"
}
],
"path": [],
"message": "Invalid input"
}
]
Performing a rule export...
Conclusion
|
Contributor
Author
|
Thu 13 Nov Update
make test-cliSuccess: Rules written to output_file.ndjson
Building limited rules for stack version 8.12 with custom rules
Loaded config file: /Users/shashankks/elastic_workspace/detection-rules/.detection-rules-cfg.json
█▀▀▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ █▀▀▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄
█ █ █▄▄ █ █▄▄ █ █ █ █ █ █▀▄ █ █▄▄▀ █ █ █ █▄▄ █▄▄
█▄▄▀ █▄▄ █ █▄▄ █▄▄ █ ▄█▄ █▄█ █ ▀▄█ █ ▀▄ █▄▄█ █▄▄ █▄▄ ▄▄█
- sha256: 4536e70c96ac10797b5e8a58fc93fbda86748f2247ecf113fc708ff735fa95b9
files saved to: /Users/shashankks/elastic_workspace/detection-rules/enriched-rule-indexes/4536e70c96ac10797b5e8a58fc93fbda86748f2247ecf113fc708ff735fa95b9
1526 rules included
Building manifests for integrations
Loaded config file: /Users/shashankks/elastic_workspace/detection-rules/.detection-rules-cfg.json
█▀▀▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ █▀▀▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄
█ █ █▄▄ █ █▄▄ █ █ █ █ █ █▀▄ █ █▄▄▀ █ █ █ █▄▄ █▄▄
█▄▄▀ █▄▄ █ █▄▄ █▄▄ █ ▄█▄ █▄█ █ ▀▄█ █ ▀▄ █▄▄█ █▄▄ █▄▄ ▄▄█
loading rules to determine all integration tags
loaded endpoint manifests from the following package versions: ['9.2.0', '9.1.0', '9.0.2', '9.0.1', '9.0.0', '8.19.0', '8.18.1', '8.18.0', '8.17.1', '8.17.0', '8.16.1', '8.16.0', '8.15.2', '8.15.1', '8.15.0', '8.14.0', '8.13.0', '8.12.0', '8.11.1', '8.11.0', '8.10.2', '8.10.1', '8.10.0', '8.9.1', '8.9.0', '8.8.0', '8.7.1', '8.7.0', '8.6.1', '8.6.0', '8.5.0', '8.4.1', '8.4.0', '8.3.0', '8.2.0', '1.5.0', '1.4.1', '1.4.0', '1.3.0', '1.2.2', '1.2.1', '1.2.0', '1.1.1', '1.1.0', '1.0.0']
final integrations manifests dumped: /Users/shashankks/elastic_workspace/detection-rules/detection_rules/etc/integration-manifests.json.gz
Building schemas for integrations
Loaded config file: /Users/shashankks/elastic_workspace/detection-rules/.detection-rules-cfg.json
█▀▀▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ █▀▀▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄
█ █ █▄▄ █ █▄▄ █ █ █ █ █ █▀▄ █ █▄▄▀ █ █ █ █▄▄ █▄▄
█▄▄▀ █▄▄ █ █▄▄ █▄▄ █ ▄█▄ █▄█ █ ▀▄█ █ ▀▄ █▄▄█ █▄▄ █▄▄ ▄▄█
Building integration schemas...
processing endpoint
final integrations manifests dumped: /Users/shashankks/elastic_workspace/detection-rules/detection_rules/etc/integration-schemas.json.gz
Detection-rules CLI tests completed!
detection-rules on renovate_updates [$!?] is 📦 v1.5.9 via 🐍 v3.12.8 (.venv) on ☁️ [email protected] took 10m32s
❯ ❯ make test-remote-climake test-remote-cli
Installing all dependencies...
./env/detection-rules-build/bin/pip install .[dev]
Looking in indexes: https://pypi.org/simple, https://shashank.suryanarayana%40elastic.co:****@artifactory.elastic.dev/artifactory/api/pypi/pypi-endgame/simple
Processing /Users/shashankks/elastic_workspace/detection-rules
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting detection-rules-kql@ git+https://github.com/elastic/detection-rules.git#subdirectory=lib/kql (from detection_rules==1.5.9)
Cloning https://github.com/elastic/detection-rules.git to /private/var/folders/jk/t_tlgnwx4w998xqw3_kjzyx00000gn/T/pip-install-k97ig79a/detection-rules-kql_520c78c54845492e9df575ce5fc7b860
Running command git clone --filter=blob:none --quiet https://github.com/elastic/detection-rules.git /private/var/folders/jk/t_tlgnwx4w998xqw3_kjzyx00000gn/T/pip-install-k97ig79a/detection-rules-kql_520c78c54845492e9df575ce5fc7b860
Resolved https://github.com/elastic/detection-rules.git to commit 29d4aeb37aa3da77c6a6468bdba648095be7408e
Running command git submodule update --init --recursive -q
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting detection-rules-kibana@ git+https://github.com/elastic/detection-rules.git#subdirectory=lib/kibana (from detection_rules==1.5.9)
Cloning https://github.com/elastic/detection-rules.git to /private/var/folders/jk/t_tlgnwx4w998xqw3_kjzyx00000gn/T/pip-install-k97ig79a/detection-rules-kibana_96e0e1428d9b466e9c5d542e04fc9f8f
Running command git clone --filter=blob:none --quiet https://github.com/elastic/detection-rules.git /private/var/folders/jk/t_tlgnwx4w998xqw3_kjzyx00000gn/T/pip-install-k97ig79a/detection-rules-kibana_96e0e1428d9b466e9c5d542e04fc9f8f
Resolved https://github.com/elastic/detection-rules.git to commit 29d4aeb37aa3da77c6a6468bdba648095be7408e
Running command git submodule update --init --recursive -q
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: Click~=8.3.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (8.3.0)
Requirement already satisfied: elasticsearch~=8.12.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (8.12.1)
Requirement already satisfied: eql==0.9.19 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (0.9.19)
Requirement already satisfied: jsl==0.2.4 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (0.2.4)
Requirement already satisfied: jsonschema>=4.21.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (4.25.1)
Requirement already satisfied: marko==2.2.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (2.2.1)
Requirement already satisfied: marshmallow-dataclass==8.7.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (8.7.1)
Requirement already satisfied: marshmallow-jsonschema~=0.13.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (0.13.0)
Requirement already satisfied: marshmallow-union~=0.1.15 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (0.1.15.post1)
Requirement already satisfied: marshmallow~=3.26.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (3.26.1)
Requirement already satisfied: pytoml==0.1.21 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (0.1.21)
Requirement already satisfied: PyYAML~=6.0.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (6.0.3)
Requirement already satisfied: requests~=2.31.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (2.31.0)
Requirement already satisfied: toml==0.10.2 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (0.10.2)
Requirement already satisfied: typing-inspect==0.9.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (0.9.0)
Requirement already satisfied: typing-extensions>=4.12 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (4.15.0)
Requirement already satisfied: XlsxWriter~=3.2.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (3.2.9)
Requirement already satisfied: semver==3.0.4 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (3.0.4)
Requirement already satisfied: PyGithub==2.8.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (2.8.1)
Requirement already satisfied: setuptools==78.1.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (78.1.1)
Requirement already satisfied: lark-parser~=0.12.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from eql==0.9.19->detection_rules==1.5.9) (0.12.0)
Requirement already satisfied: typeguard<5,>=4.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from marshmallow-dataclass==8.7.1->detection_rules==1.5.9) (4.4.4)
Requirement already satisfied: pynacl>=1.4.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from PyGithub==2.8.1->detection_rules==1.5.9) (1.6.0)
Requirement already satisfied: pyjwt>=2.4.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from pyjwt[crypto]>=2.4.0->PyGithub==2.8.1->detection_rules==1.5.9) (2.10.1)
Requirement already satisfied: urllib3>=1.26.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from PyGithub==2.8.1->detection_rules==1.5.9) (2.5.0)
Requirement already satisfied: mypy-extensions>=0.3.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from typing-inspect==0.9.0->detection_rules==1.5.9) (1.1.0)
Requirement already satisfied: pep8-naming==0.15.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (0.15.1)
Requirement already satisfied: flake8==7.3.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (7.3.0)
Requirement already satisfied: pyflakes==3.4.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (3.4.0)
Requirement already satisfied: pytest>=8.1.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (8.4.2)
Requirement already satisfied: nodeenv==1.9.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (1.9.1)
Requirement already satisfied: pre-commit==3.8.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (3.8.0)
Requirement already satisfied: ruff>=0.11 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (0.14.2)
Requirement already satisfied: pyright>=1.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection_rules==1.5.9) (1.1.407)
Requirement already satisfied: mccabe<0.8.0,>=0.7.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from flake8==7.3.0->detection_rules==1.5.9) (0.7.0)
Requirement already satisfied: pycodestyle<2.15.0,>=2.14.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from flake8==7.3.0->detection_rules==1.5.9) (2.14.0)
Requirement already satisfied: cfgv>=2.0.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from pre-commit==3.8.0->detection_rules==1.5.9) (3.4.0)
Requirement already satisfied: identify>=1.0.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from pre-commit==3.8.0->detection_rules==1.5.9) (2.6.15)
Requirement already satisfied: virtualenv>=20.10.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from pre-commit==3.8.0->detection_rules==1.5.9) (20.35.4)
Requirement already satisfied: elastic-transport<9,>=8 in ./env/detection-rules-build/lib/python3.12/site-packages (from elasticsearch~=8.12.1->detection_rules==1.5.9) (8.17.1)
Requirement already satisfied: attrs>=22.2.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from jsonschema>=4.21.1->detection_rules==1.5.9) (25.4.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in ./env/detection-rules-build/lib/python3.12/site-packages (from jsonschema>=4.21.1->detection_rules==1.5.9) (2025.9.1)
Requirement already satisfied: referencing>=0.28.4 in ./env/detection-rules-build/lib/python3.12/site-packages (from jsonschema>=4.21.1->detection_rules==1.5.9) (0.37.0)
Requirement already satisfied: rpds-py>=0.7.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from jsonschema>=4.21.1->detection_rules==1.5.9) (0.28.0)
Requirement already satisfied: packaging>=17.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from marshmallow~=3.26.1->detection_rules==1.5.9) (25.0)
Requirement already satisfied: iniconfig>=1 in ./env/detection-rules-build/lib/python3.12/site-packages (from pytest>=8.1.1->detection_rules==1.5.9) (2.3.0)
Requirement already satisfied: pluggy<2,>=1.5 in ./env/detection-rules-build/lib/python3.12/site-packages (from pytest>=8.1.1->detection_rules==1.5.9) (1.6.0)
Requirement already satisfied: pygments>=2.7.2 in ./env/detection-rules-build/lib/python3.12/site-packages (from pytest>=8.1.1->detection_rules==1.5.9) (2.19.2)
Requirement already satisfied: charset-normalizer<4,>=2 in ./env/detection-rules-build/lib/python3.12/site-packages (from requests~=2.31.0->detection_rules==1.5.9) (3.4.4)
Requirement already satisfied: idna<4,>=2.5 in ./env/detection-rules-build/lib/python3.12/site-packages (from requests~=2.31.0->detection_rules==1.5.9) (3.11)
Requirement already satisfied: certifi>=2017.4.17 in ./env/detection-rules-build/lib/python3.12/site-packages (from requests~=2.31.0->detection_rules==1.5.9) (2025.10.5)
Requirement already satisfied: cryptography>=3.4.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from pyjwt[crypto]>=2.4.0->PyGithub==2.8.1->detection_rules==1.5.9) (46.0.3)
Requirement already satisfied: cffi>=1.4.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from pynacl>=1.4.0->PyGithub==2.8.1->detection_rules==1.5.9) (2.0.0)
Requirement already satisfied: distlib<1,>=0.3.7 in ./env/detection-rules-build/lib/python3.12/site-packages (from virtualenv>=20.10.0->pre-commit==3.8.0->detection_rules==1.5.9) (0.4.0)
Requirement already satisfied: filelock<4,>=3.12.2 in ./env/detection-rules-build/lib/python3.12/site-packages (from virtualenv>=20.10.0->pre-commit==3.8.0->detection_rules==1.5.9) (3.20.0)
Requirement already satisfied: platformdirs<5,>=3.9.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from virtualenv>=20.10.0->pre-commit==3.8.0->detection_rules==1.5.9) (4.5.0)
Requirement already satisfied: pycparser in ./env/detection-rules-build/lib/python3.12/site-packages (from cffi>=1.4.1->pynacl>=1.4.0->PyGithub==2.8.1->detection_rules==1.5.9) (2.23)
Building wheels for collected packages: detection_rules
Building wheel for detection_rules (pyproject.toml) ... done
Created wheel for detection_rules: filename=detection_rules-1.5.9-py3-none-any.whl size=47361065 sha256=2a4f07ad81cf59f5b6da94294adeb752a0d629f0962497e081037a8c2f718b21
Stored in directory: /Users/shashankks/Library/Caches/pip/wheels/3c/7f/bb/1273517229a8e34daadcd208fec85ac1b3ea2df226e5acfbf9
Successfully built detection_rules
Installing collected packages: detection_rules
Attempting uninstall: detection_rules
Found existing installation: detection_rules 1.5.9
Uninstalling detection_rules-1.5.9:
Successfully uninstalled detection_rules-1.5.9
Successfully installed detection_rules-1.5.9
[notice] A new release of pip is available: 24.3.1 -> 25.3
[notice] To update, run: python3.12 -m pip install --upgrade pip
./env/detection-rules-build/bin/pip install lib/kibana
Looking in indexes: https://pypi.org/simple, https://shashank.suryanarayana%40elastic.co:****@artifactory.elastic.dev/artifactory/api/pypi/pypi-endgame/simple
Processing ./lib/kibana
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: requests<3.0,>=2.25 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection-rules-kibana==0.4.4) (2.31.0)
Requirement already satisfied: elasticsearch~=8.12.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection-rules-kibana==0.4.4) (8.12.1)
Requirement already satisfied: elastic-transport<9,>=8 in ./env/detection-rules-build/lib/python3.12/site-packages (from elasticsearch~=8.12.1->detection-rules-kibana==0.4.4) (8.17.1)
Requirement already satisfied: charset-normalizer<4,>=2 in ./env/detection-rules-build/lib/python3.12/site-packages (from requests<3.0,>=2.25->detection-rules-kibana==0.4.4) (3.4.4)
Requirement already satisfied: idna<4,>=2.5 in ./env/detection-rules-build/lib/python3.12/site-packages (from requests<3.0,>=2.25->detection-rules-kibana==0.4.4) (3.11)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./env/detection-rules-build/lib/python3.12/site-packages (from requests<3.0,>=2.25->detection-rules-kibana==0.4.4) (2.5.0)
Requirement already satisfied: certifi>=2017.4.17 in ./env/detection-rules-build/lib/python3.12/site-packages (from requests<3.0,>=2.25->detection-rules-kibana==0.4.4) (2025.10.5)
Building wheels for collected packages: detection-rules-kibana
Building wheel for detection-rules-kibana (pyproject.toml) ... done
Created wheel for detection-rules-kibana: filename=detection_rules_kibana-0.4.4-py3-none-any.whl size=8784 sha256=27b411ddc08673f8ecc2615e1e7f9720b70caaf5d24051d409d6eed40c9fc580
Stored in directory: /private/var/folders/jk/t_tlgnwx4w998xqw3_kjzyx00000gn/T/pip-ephem-wheel-cache-msuv0jl_/wheels/13/7a/71/74c34688eaf490ec850e60e4cbcd8c83c5213a1ea5bc9b6b0a
Successfully built detection-rules-kibana
Installing collected packages: detection-rules-kibana
Attempting uninstall: detection-rules-kibana
Found existing installation: detection-rules-kibana 0.4.4
Uninstalling detection-rules-kibana-0.4.4:
Successfully uninstalled detection-rules-kibana-0.4.4
Successfully installed detection-rules-kibana-0.4.4
[notice] A new release of pip is available: 24.3.1 -> 25.3
[notice] To update, run: python3.12 -m pip install --upgrade pip
./env/detection-rules-build/bin/pip install lib/kql
Looking in indexes: https://pypi.org/simple, https://shashank.suryanarayana%40elastic.co:****@artifactory.elastic.dev/artifactory/api/pypi/pypi-endgame/simple
Processing ./lib/kql
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: eql==0.9.19 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection-rules-kql==0.1.9) (0.9.19)
Requirement already satisfied: lark-parser>=0.12.0 in ./env/detection-rules-build/lib/python3.12/site-packages (from detection-rules-kql==0.1.9) (0.12.0)
Building wheels for collected packages: detection-rules-kql
Building wheel for detection-rules-kql (pyproject.toml) ... done
Created wheel for detection-rules-kql: filename=detection_rules_kql-0.1.9-py3-none-any.whl size=17471 sha256=517cbd7a3b9b37ef8e0167a761b5c35d2d9ed70464fbda0f94f04549e6a48fcb
Stored in directory: /private/var/folders/jk/t_tlgnwx4w998xqw3_kjzyx00000gn/T/pip-ephem-wheel-cache-68l0s8wp/wheels/a5/04/40/23c256d5f994741fa8afe9042023a31c1bafcf883c8be68ab6
Successfully built detection-rules-kql
Installing collected packages: detection-rules-kql
Attempting uninstall: detection-rules-kql
Found existing installation: detection-rules-kql 0.1.9
Uninstalling detection-rules-kql-0.1.9:
Successfully uninstalled detection-rules-kql-0.1.9
Successfully installed detection-rules-kql-0.1.9
[notice] A new release of pip is available: 24.3.1 -> 25.3
[notice] To update, run: python3.12 -m pip install --upgrade pip
Executing test_remote_cli script...
Running detection-rules remote CLI tests...
Performing a quick rule alerts search...
Requires .detection-rules-cfg.json credentials file set.
Loaded config file: /Users/shashankks/elastic_workspace/detection-rules/.detection-rules-cfg.json
█▀▀▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ █▀▀▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄
█ █ █▄▄ █ █▄▄ █ █ █ █ █ █▀▄ █ █▄▄▀ █ █ █ █▄▄ █▄▄
█▄▄▀ █▄▄ █ █▄▄ █▄▄ █ ▄█▄ █▄█ █ ▀▄█ █ ▀▄ █▄▄█ █▄▄ █▄▄ ▄▄█
====================================================================================================================================================
kibana
alert
host rule
hostname name status original_time
====================================================================================================================================================
trade-test-local-vm.local Malicious Behavior Detection Alert: DARKRADIATION Ransomware Infection active 2025-11-12T13:09:13.122Z
e2e-release-windows-server-2 Malicious Behavior Detection Alert: Suspicious Bitsadmin Activity active 2025-11-12T13:09:20.249Z
e2e-release-test-instance-2 Malicious Behavior Detection Alert: DARKRADIATION Ransomware Infection active 2025-11-12T13:09:35.927Z
e2e-release-windows-server-2 Malicious Behavior Detection Alert: Suspicious Microsoft Office Child Process active 2025-11-12T13:09:20.349Z
e2e-release-windows-server-2 Malware Detection Alert active 2025-11-12T09:41:07.083Z
e2e-release-windows-server-2 Malware Detection Alert active 2025-11-12T09:40:57.696Z
e2e-release-windows-server-2 Malicious Behavior Detection Alert: Malicious Reputation of Executable Download active 2025-11-12T09:40:59.118Z
trade-test-local-vm.local Malicious Behavior Detection Alert: DARKRADIATION Ransomware Infection active 2025-11-10T16:50:33.880Z
e2e-release-windows-server-2 Malicious Behavior Detection Alert: Suspicious Bitsadmin Activity active 2025-11-10T16:49:51.555Z
e2e-release-windows-server-2 Malicious Behavior Detection Alert: Suspicious Microsoft Office Child Process active 2025-11-10T16:49:51.602Z
e2e-release-test-instance-2 Malicious Behavior Detection Alert: DARKRADIATION Ransomware Infection active 2025-11-10T16:50:46.813Z
====================================================================================================================================================
Setting Up Custom Directory...
Loaded config file: /Users/shashankks/elastic_workspace/detection-rules/.detection-rules-cfg.json
█▀▀▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ █▀▀▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄
█ █ █▄▄ █ █▄▄ █ █ █ █ █ █▀▄ █ █▄▄▀ █ █ █ █▄▄ █▄▄
█▄▄▀ █▄▄ █ █▄▄ █▄▄ █ ▄█▄ █▄█ █ ▀▄█ █ ▀▄ █▄▄█ █▄▄ █▄▄ ▄▄█
Created directory: tmp-custom/actions
Created directory: tmp-custom/action_connectors
Created directory: tmp-custom/exceptions
Created directory: tmp-custom/rules
Created directory: tmp-custom/rules_building_block
Created directory: tmp-custom/etc
Created file with default content: tmp-custom/etc/deprecated_rules.json
Created file with default content: tmp-custom/etc/version.lock.json
Created file with default content: tmp-custom/etc/packages.yaml
Created file with default content: tmp-custom/etc/stack-schema-map.yaml
Created file with default content: tmp-custom/etc/test_config.yaml
Created file with default content: tmp-custom/_config.yaml
# For details on how to configure the _config.yaml file,
# consult: /Users/shashankks/elastic_workspace/detection-rules/detection_rules/etc/_config.yaml
# or the docs: /Users/shashankks/elastic_workspace/detection-rules/docs-dev/custom-rules-management.md
Performing a rule conversion from ndjson to toml files...
Loaded config file: /Users/shashankks/elastic_workspace/detection-rules/.detection-rules-cfg.json
█▀▀▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ █▀▀▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄
█ █ █▄▄ █ █▄▄ █ █ █ █ █ █▀▄ █ █▄▄▀ █ █ █ █▄▄ █▄▄
█▄▄▀ █▄▄ █ █▄▄ █▄▄ █ ▄█▄ █▄█ █ ▀▄█ █ ▀▄ █▄▄█ █▄▄ █▄▄ ▄▄█
[+] Building rule for tmp-custom/rules/test_kql_rule.toml
[+] Building rule for tmp-custom/rules/test_kql_with_alert_supprestion_and_investigation_fileds.toml
[+] Building rule for tmp-custom/rules/test_kql_with_alert_suppression.toml
[+] Building rule for tmp-custom/rules/test_eql_rule.toml
[+] Building rule for tmp-custom/rules/test_esql_rule_with_shared_rule_exception.toml
/Users/shashankks/elastic_workspace/detection-rules/detection_rules/index_mappings.py:357: ElasticsearchWarning: No limit defined, adding default limit of [1000]
response = elastic_client.esql.query(query=query)
[+] Building rule for tmp-custom/rules/test_new_terms_rule_with_shared_rule_exception.toml
[+] Building rule for tmp-custom/rules/test_indicator_match_rule_with_email_actions.toml
[+] Building rule for tmp-custom/rules/test_threshold_with_rule_exception.toml
[+] Building rule for tmp-custom/rules/test_machine_learning_rule_with_index_action_connector.toml
[+] Building exception(s) for /Users/shashankks/elastic_workspace/detection-rules/tmp-custom/exceptions/1c8a1378-8f0d-4565-9ae0-abeeaf3981ca_exceptions.toml
[+] Building exception(s) for /Users/shashankks/elastic_workspace/detection-rules/tmp-custom/exceptions/0a4124f8-2074-450b-8689-d7dee319c666_exceptions.toml
[+] Building action connector(s) for /Users/shashankks/elastic_workspace/detection-rules/tmp-custom/action_connectors/e1b418e7-78df-4042-bfb0-1cc5fb6f7a4e_actions.toml
[+] Building action connector(s) for /Users/shashankks/elastic_workspace/detection-rules/tmp-custom/action_connectors/1b8d347f-2542-4390-85de-2653518311e2_actions.toml
15 results exported
9 rules converted
4 exceptions exported
2 actions connectors exported
Performing a rule import to kibana...
Loaded config file: /Users/shashankks/elastic_workspace/detection-rules/.detection-rules-cfg.json
█▀▀▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ █▀▀▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄
█ █ █▄▄ █ █▄▄ █ █ █ █ █ █▀▄ █ █▄▄▀ █ █ █ █▄▄ █▄▄
█▄▄▀ █▄▄ █ █▄▄ █▄▄ █ ▄█▄ █▄█ █ ▀▄█ █ ▀▄ █▄▄█ █▄▄ █▄▄ ▄▄█
/Users/shashankks/elastic_workspace/detection-rules/detection_rules/index_mappings.py:357: ElasticsearchWarning: No limit defined, adding default limit of [1000]
response = elastic_client.esql.query(query=query)
9 rule(s) successfully imported
- 2cc8f325-e1b1-4201-8b8d-88a51c94992b
- 7e0f6dae-5847-465f-89e9-a6de0e9ef918
- 4c589d81-2622-4036-8cc7-372ea8f0e038
- bcbd5906-fc38-4cbe-8b54-c2dba5d4b127
- 2c6c5352-11cb-40a5-9294-e61ef5f1954f
- 742feb36-ac4c-45e0-b8a5-3b3cfa66b6d2
- 8a3296e2-4a74-4d51-b819-8d4e58377bf7
- 2390c9dd-ad90-4af6-97a4-1d607ba0f092
- d46a29ca-9b5b-4cbd-b11f-35c6b59f207b
1 exception list(s) successfully imported
- 0a4124f8-2074-450b-8689-d7dee319c666
1 action connector(s) successfully imported
- e1b418e7-78df-4042-bfb0-1cc5fb6f7a4e
Performing a rule export...
Loaded config file: /Users/shashankks/elastic_workspace/detection-rules/.detection-rules-cfg.json
█▀▀▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ █▀▀▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄
█ █ █▄▄ █ █▄▄ █ █ █ █ █ █▀▄ █ █▄▄▀ █ █ █ █▄▄ █▄▄
█▄▄▀ █▄▄ █ █▄▄ █▄▄ █ ▄█▄ █▄█ █ ▀▄█ █ ▀▄ █▄▄█ █▄▄ █▄▄ ▄▄█
/Users/shashankks/elastic_workspace/detection-rules/detection_rules/index_mappings.py:357: ElasticsearchWarning: No limit defined, adding default limit of [1000]
response = elastic_client.esql.query(query=query)
15 results exported
9 rules converted
2 exceptions exported
2 action connectors exported
9 rules saved to tmp-custom
2 exception lists saved to /Users/shashankks/elastic_workspace/detection-rules/tmp-custom/exceptions
2 action connectors saved to /Users/shashankks/elastic_workspace/detection-rules/tmp-custom/action_connectors
Testing ESQL Rules...
============================================================================================================ test session starts =============================================================================================================
platform darwin -- Python 3.12.8, pytest-8.4.2, pluggy-1.6.0
rootdir: /Users/shashankks/elastic_workspace/detection-rules
configfile: pyproject.toml
plugins: typeguard-4.4.4
collected 11 items
tests/test_rules_remote.py ........... [100%]
============================================================================================================== warnings summary ==============================================================================================================
tests/test_rules_remote.py::TestRemoteRules::test_esql_endpoint_alerts_index
tests/test_rules_remote.py::TestRemoteRules::test_esql_endpoint_alerts_index_endpoint_fields
tests/test_rules_remote.py::TestRemoteRules::test_esql_filtered_index
tests/test_rules_remote.py::TestRemoteRules::test_esql_non_dataset_package_related_integrations
tests/test_rules_remote.py::TestRemoteRules::test_esql_related_integrations
/Users/shashankks/elastic_workspace/detection-rules/detection_rules/index_mappings.py:357: ElasticsearchWarning: No limit defined, adding default limit of [1000]
response = elastic_client.esql.query(query=query)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================================= 11 passed, 5 warnings in 62.04s (0:01:02) ==================================================================================================
Removing generated files...
Detection-rules Remote CLI tests completed!
detection-rules on renovate_updates [$?] is 📦 v1.5.9 via 🐍 v3.12.8 (.venv) on ☁️ [email protected] took 2m48s
❯ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Issue link(s): NA
Summary - What I changed
How To Test
Installed Updated Packages
Click Upgrade
click is used in basic BANNER display as well
PyGithub Testing
marko
view-rule Uses marko to parse the note field into a new setup restricted field
For project.optional-dependencies --> Code checks should pass
make test-cli
make test-remote-cli
bug,enhancement,schema,maintenance,Rule: New,Rule: Deprecation,Rule: Tuning,Hunt: New, orHunt: Tuningso guidelines can be generatedmeta:rapid-mergelabel if planning to merge within 24 hoursContributor checklist