elastic / detection-rules-dac-demo
File Size

The distribution of size of files (measured in lines of code).

Intro
Learn more...
File Size Overall
1% | <1% | 5% | 49% | 43%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py18% | 10% | 44% | 17% | 8%
toml0% | 0% | 2% | 51% | 45%
yaml0% | 0% | 0% | 0% | 100%
g0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
detection_rules21% | 12% | 46% | 15% | 3%
rules0% | 0% | 2% | 55% | 42%
lib0% | 0% | 39% | 8% | 51%
rules_building_block0% | 0% | 3% | 19% | 77%
hunting0% | 0% | 0% | 13% | 86%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
rule.py
in detection_rules
1140 113
devtools.py
in detection_rules
1053 44
docs.py
in detection_rules
699 60
main.py
in detection_rules
527 18
rule_validators.py
in detection_rules
439 25
rule_loader.py
in detection_rules
439 43
packaging.py
in detection_rules
367 18
misc.py
in detection_rules
344 17
kbwrap.py
in detection_rules
332 5
ml.py
in detection_rules
327 35
319 -
eswrap.py
in detection_rules
309 23
307 -
utils.py
in detection_rules
291 39
integrations.py
in detection_rules
286 17
284 -
280 -
271 -
discovery_posh_generic.toml
in rules_building_block
268 -
parser.py
in lib/kql/kql
265 31
252 -
ecs.py
in detection_rules
245 21
resources.py
in lib/kibana/kibana
243 32
ghwrap.py
in detection_rules
241 18
239 -
228 -
226 -
225 -
definitions.py
in detection_rules/schemas
224 3
config.py
in detection_rules
221 13
navigator.py
in detection_rules
220 19
214 -
212 -
version_lock.py
in detection_rules
212 11
__init__.py
in detection_rules/schemas
210 37
202 -
rule_formatter.py
in detection_rules
200 10
exception.py
in detection_rules
199 10
cli_utils.py
in detection_rules
198 3
193 -
191 -
191 -
191 -
191 -
190 -
189 -
188 -
188 -
186 -
186 -
Files With Most Units (Top 50)
File# lines# units
rule.py
in detection_rules
1140 113
docs.py
in detection_rules
699 60
devtools.py
in detection_rules
1053 44
rule_loader.py
in detection_rules
439 43
utils.py
in detection_rules
291 39
__init__.py
in detection_rules/schemas
210 37
ml.py
in detection_rules
327 35
resources.py
in lib/kibana/kibana
243 32
parser.py
in lib/kql/kql
265 31
rule_validators.py
in detection_rules
439 25
eswrap.py
in detection_rules
309 23
ecs.py
in detection_rules
245 21
navigator.py
in detection_rules
220 19
packaging.py
in detection_rules
367 18
generic_loader.py
in detection_rules
125 18
mixins.py
in detection_rules
158 18
main.py
in detection_rules
527 18
ghwrap.py
in detection_rules
241 18
evaluator.py
in lib/kql/kql
112 18
remote_validation.py
in detection_rules
147 17
misc.py
in detection_rules
344 17
integrations.py
in detection_rules
286 17
beats.py
in detection_rules
184 17
eql2kql.py
in lib/kql/kql
91 16
dsl.py
in lib/kql/kql
82 15
config.py
in detection_rules
221 13
kql2eql.py
in lib/kql/kql
64 13
optimizer.py
in lib/kql/kql
91 13
version_lock.py
in detection_rules
212 11
ast.py
in lib/kql/kql
91 11
attack.py
in detection_rules
164 10
exception.py
in detection_rules
199 10
rule_formatter.py
in detection_rules
200 10
markdown.py
in hunting
102 10
search.py
in hunting
124 10
utils.py
in hunting
79 8
run.py
in hunting
49 7
__main__.py
in hunting
161 7
endgame.py
in detection_rules
62 6
action_connector.py
in detection_rules
124 6
custom_schemas.py
in detection_rules
66 6
__init__.py
in lib/kql/kql
52 6
kbwrap.py
in detection_rules
332 5
custom_rules.py
in detection_rules
106 4
cli_utils.py
in detection_rules
198 3
stack_compat.py
in detection_rules/schemas
32 3
definitions.py
in detection_rules/schemas
224 3
action.py
in detection_rules
39 2
definitions.py
in hunting
39 2
__main__.py
in detection_rules
13 1
Files With Long Lines (Top 50)

There are 1464 files with lines longer than 120 characters. In total, there are 25245 long lines.

File# lines# units# long lines
108 - 43
191 - 41
145 - 40
defense_evasion_sqs_purge_queue.toml
in rules/integrations/aws
137 - 38
114 - 35
151 - 35
122 - 34
122 - 34
117 - 34
125 - 34
118 - 34
115 - 34
123 - 34
118 - 34
131 - 34
113 - 34
129 - 34
123 - 34
111 - 34
111 - 34
113 - 34
114 - 34
100 - 33
116 - 33
120 - 33
100 - 33
115 - 33
124 - 33
125 - 33
214 - 33
115 - 33
command_and_control_beaconing.toml
in rules/integrations/beaconing
92 - 32
115 - 32
115 - 32
171 - 32
159 - 32
94 - 32
117 - 32
118 - 32
123 - 32
98 - 32
108 - 32
160 - 32
114 - 32
118 - 32
119 - 32
115 - 31
115 - 31
116 - 31
120 - 31