Skip to content

[Bug] Importing rules from directory does not work #5427

@willbrownecs

Description

@willbrownecs

Describe the Bug

Importing rules using syntax like detection_rules import-rules-to-repo -d import_me/ results in an error AttributeError: 'str' object has no attribute 'glob'

To Reproduce

  1. create a directory called import_me at the root of the repository, populate it with some ndjson files
  2. create a directory called imported to attempt to save the rules to
  3. run detection_rules import-rules-to-repo -s imported/ -d import_me/ and observe the error

Expected Behavior

Rules are imported successfully into the imported/ directory

Screenshots

Image

Desktop - OS

other - explain

Desktop - Version

WSL2 - Ubuntu 24.04

Additional Context

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions