elastic / detection-rules
File Size

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

Intro
Learn more...
File Size Overall
1% | <1% | 5% | 48% | 44%
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
py19% | 10% | 43% | 17% | 8%
toml0% | 0% | 2% | 50% | 46%
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_rules22% | 12% | 45% | 15% | 3%
rules0% | 0% | 2% | 54% | 43%
lib0% | 0% | 39% | 8% | 51%
rules_building_block0% | 0% | 3% | 20% | 75%
hunting0% | 0% | 0% | 12% | 87%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
rule.py
in detection_rules
1152 114
devtools.py
in detection_rules
1125 47
docs.py
in detection_rules
699 60
main.py
in detection_rules
535 18
rule_loader.py
in detection_rules
451 44
rule_validators.py
in detection_rules
439 25
kbwrap.py
in detection_rules
368 5
packaging.py
in detection_rules
367 18
utils.py
in detection_rules
339 44
324 -
315 -
misc.py
in detection_rules
312 17
eswrap.py
in detection_rules
306 22
integrations.py
in detection_rules
287 17
284 -
278 -
discovery_posh_generic.toml
in rules_building_block
274 -
271 -
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
237 -
228 -
226 -
225 -
definitions.py
in detection_rules/schemas
225 3
config.py
in detection_rules
223 13
navigator.py
in detection_rules
220 19
__init__.py
in detection_rules/schemas
216 39
212 -
212 -
version_lock.py
in detection_rules
212 11
202 -
cli_utils.py
in detection_rules
201 3
rule_formatter.py
in detection_rules
200 10
exception.py
in detection_rules
199 10
191 -
191 -
191 -
191 -
190 -
189 -
189 -
188 -
186 -
185 -
184 -
beats.py
in detection_rules
184 17
Files With Most Units (Top 50)
File# lines# units
rule.py
in detection_rules
1152 114
docs.py
in detection_rules
699 60
devtools.py
in detection_rules
1125 47
rule_loader.py
in detection_rules
451 44
utils.py
in detection_rules
339 44
__init__.py
in detection_rules/schemas
216 39
resources.py
in lib/kibana/kibana
243 32
parser.py
in lib/kql/kql
265 31
ml.py
in detection_rules
183 28
rule_validators.py
in detection_rules
439 25
eswrap.py
in detection_rules
306 22
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
535 18
ghwrap.py
in detection_rules
241 18
evaluator.py
in lib/kql/kql
112 18
remote_validation.py
in detection_rules
152 17
misc.py
in detection_rules
312 17
integrations.py
in detection_rules
287 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
223 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
368 5
custom_rules.py
in detection_rules
106 4
cli_utils.py
in detection_rules
201 3
stack_compat.py
in detection_rules/schemas
32 3
definitions.py
in detection_rules/schemas
225 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 1567 files with lines longer than 120 characters. In total, there are 26834 long lines.

File# lines# units# long lines
109 - 43
191 - 41
145 - 40
defense_evasion_sqs_purge_queue.toml
in rules/integrations/aws
137 - 38
149 - 35
122 - 34
122 - 34
117 - 34
125 - 34
118 - 34
115 - 34
123 - 34
116 - 34
131 - 34
113 - 34
127 - 34
119 - 34
123 - 34
109 - 34
100 - 33
116 - 33
120 - 33
100 - 33
115 - 33
126 - 33
125 - 33
212 - 33
116 - 33
117 - 33
119 - 33
command_and_control_beaconing.toml
in rules/integrations/beaconing
92 - 32
115 - 32
115 - 32
169 - 32
157 - 32
94 - 32
117 - 32
116 - 32
123 - 32
98 - 32
108 - 32
158 - 32
114 - 32
118 - 32
107 - 32
117 - 32
134 - 32
117 - 32
118 - 32
111 - 32