Skip to content

Commit

Permalink
[New Rule] AWS S3 Bucket Enumeration or Brute Force (#3635)
Browse files Browse the repository at this point in the history
* [New Rule] AWS S3 Bucket Enumeration or Brute Force
Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com>
---------

Co-authored-by: brokensound77 <brokensound77@users.noreply.github.com>
Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com>

(cherry picked from commit 54ff270)
  • Loading branch information
brokensound77 authored and github-actions[bot] committed May 1, 2024
1 parent 6938b48 commit 4ef606b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion detection_rules/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,11 @@ def validate(self, data: 'QueryRuleData', meta: RuleMeta) -> None:
raise NotImplementedError()

@cached
def get_required_fields(self, index: str) -> List[dict]:
def get_required_fields(self, index: str) -> List[Optional[dict]]:
"""Retrieves fields needed for the query along with type information from the schema."""
if isinstance(self, ESQLValidator):
return []

current_version = Version.parse(load_current_package_version(), optional_minor_and_patch=True)
ecs_version = get_stack_schemas()[str(current_version)]['ecs']
beats_version = get_stack_schemas()[str(current_version)]['beats']
Expand Down

0 comments on commit 4ef606b

Please sign in to comment.