[Rule Tuning] Add pfSense support for existing rules#6260
Merged
Conversation
|
⛔️ Test failed Results
|
Contributor
Enhancement - GuidelinesThese 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
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR tunes several existing network rules to explicitly support pfSense by adding the pfsense integration metadata, including the pfSense index pattern, and tagging pfSense as a data source where applicable. It also updates the rule-validation schema to recognize pfsense as an integration and bumps the package version.
Changes:
- Add
pfsensetointegration,index, andtagsacross multiple network rules. - Update the Telnet rule to include pfSense in
data_stream.datasetselection and adjust filtering logic. - Extend schema definitions to allow
pfsenseas an integration and bumppyproject.tomlversion.
Reviewed changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| rules/network/initial_access_smb_windows_file_sharing_activity_to_the_internet.toml | Add pfSense integration metadata, index, and data source tag. |
| rules/network/initial_access_rpc_remote_procedure_call_to_the_internet.toml | Add pfSense integration metadata, index, and data source tag. |
| rules/network/initial_access_rpc_remote_procedure_call_from_the_internet.toml | Add pfSense integration metadata, index, and data source tag. |
| rules/network/command_and_control_vnc_virtual_network_computing_to_the_internet.toml | Add pfSense integration metadata, index, and data source tag. |
| rules/network/command_and_control_vnc_virtual_network_computing_from_the_internet.toml | Add pfSense integration metadata, index, and data source tag. |
| rules/network/command_and_control_rdp_remote_desktop_protocol_from_the_internet.toml | Add pfSense integration metadata, index, and data source tag. |
| rules/network/command_and_control_port_26_activity.toml | Add pfSense integration metadata, index, and data source tag. |
| rules/network/command_and_control_nat_traversal_port_activity.toml | Add pfSense integration metadata, index, and data source tag. |
| rules/network/command_and_control_accepted_default_telnet_port_connection.toml | Add pfSense integration/index/tag and tune query logic for pfSense coverage. |
| detection_rules/schemas/definitions.py | Add pfsense to the integration/schema package list used by validation. |
| pyproject.toml | Bump package version to reflect schema/rule updates. |
terrancedejesus
approved these changes
Jun 12, 2026
Aegrah
approved these changes
Jun 17, 2026
imays11
approved these changes
Jun 18, 2026
Mikaayenson
approved these changes
Jun 23, 2026
|
⛔️ Test failed Results
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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):
Summary - What I changed
Small update to add pfSense coverage to existing rules where applicable. Also integrations manifest update for validation.
pfSense already populates
event.category:networkand the 5-tuple ECS fields; these rules' existingevent.category:(network or network_traffic)branch fires on pfSense data without modification.command_and_control_accepted_default_telnet_port_connection.tomlneeded a small query change. The existing exclusion list (not event.action:(flow_dropped or flow_denied or denied or deny or ...)) did not include pfSense'sblockaction, meaning pfSense-blocked telnet flows would have generated false positive alerts.How To Test
RTAs in elastic/cortado#34
And unit testing.
Checklist
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