Skip to content

Commit

Permalink
update rule views
Browse files Browse the repository at this point in the history
  • Loading branch information
sodle-splunk committed Feb 26, 2024
1 parent daee72f commit a9cd6e8
Show file tree
Hide file tree
Showing 4 changed files with 262 additions and 62 deletions.
89 changes: 65 additions & 24 deletions crowdstrike_list_ioa_rule_groups.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,23 +103,24 @@ <h3 class="wf-h3-style">Rule Groups</h3>
<div class="metadata_div">
<!--Default View-->
<div class="panel-group" id="rule-group-information">
<div class="panel">
<div id="default-view-table" class="panel-collapse collapse in">
<table class="wf-table-horizontal datatable">
<thead>
<tr>
<th>Rule Group ID</th>
<th>Version</th>
<th>Enabled</th>
<th>Name</th>
<th>Description</th>
<th>Platform</th>
<th>Comment</th>
</tr>
</thead>
<tbody>
{% for rule_group in result.data %}
{% for resource in rule_group.resources %}
{% for rule_group in result.data %}
{% for resource in rule_group.resources %}
<div class="panel">
<div id="default-view-table" class="panel-collapse collapse in">
<h1>Rule Group {{ resource.name }}</h1>
<table class="wf-table-horizontal datatable">
<thead>
<tr>
<th>Rule Group ID</th>
<th>Version</th>
<th>Enabled</th>
<th>Name</th>
<th>Description</th>
<th>Platform</th>
<th>Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="javascript:;"
Expand All @@ -136,20 +137,60 @@ <h3 class="wf-h3-style">Rule Groups</h3>
<td>{{ resource.platform }}</td>
<td>{{ resource.comment }}</td>
</tr>
{% endfor %}
{% endfor %}
</tbody>
</table>
</div>
</div>
</tbody>
</table>
<h2>Rules</h2>
<table class="wf-table-horizontal datatable">
<thead>
<tr>
<td>Rule ID</td>
<td>Rule Version</td>
<td>Enabled</td>
<td>Name</td>
<td>Description</td>
<td>Rule Type</td>
<td>Severity</td>
<td>Action</td>
<td>Field Values</td>
<td>Comment</td>
</tr>
</thead>
<tbody>
{% for rule in resource.rules %}
<tr>
<td>
<a href="javascript:;"
onclick="context_menu(this, [{'contains': ['crowdstrike ioa rule id'], 'value': '{{ rule.instance_id }}' }], 0, {{ container.id }}, null, false);">
{{ rule.instance_id }}
&nbsp;
<span class="fa fa-caret-down" style="font-size: smaller;"></span>
</a>
</td>
<td>{{ rule.instance_version }}</td>
<td>{{ rule.enabled }}</td>
<td>{{ rule.name }}</td>
<td>{{ rule.description }}</td>
<td>{{ rule.ruletype_name }}</td>
<td>{{ rule.pattern_severity }}</td>
<td>{{ rule.action_label }}</td>
<td>{{ rule.field_values }}</td>
<td>{{ rule.comment }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<hr />
{% endfor %}
{% endfor %}
</div>
</div>
<br>
{% endif %}
{% endfor %} <!-- loop for each result end -->
</div> <!-- Main Div -->


<script>
$.extend(true, $.fn.dataTable.defaults, {
"searching": false,
Expand Down
52 changes: 52 additions & 0 deletions crowdstrike_update_ioa_rule.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,58 @@ <h3 class="wf-h3-style">Updated Rule</h3>
</div>
</div>
</div>
<h3 class="wf-h3-style">Rules</h3>
<div class="metadata_div">
<div class="panel-group">
<div class="panel">
<div id="default-view-table" class="panel-collapse collapse in">
{% for rule_group in result.data %}
{% for resource in rule_group.resources %}
<table class="wf-table-horizontal datatable">
<thead>
<tr>
<td>Rule ID</td>
<td>Rule Version</td>
<td>Enabled</td>
<td>Name</td>
<td>Description</td>
<td>Rule Type</td>
<td>Severity</td>
<td>Action</td>
<td>Field Values</td>
<td>Comment</td>
</tr>
</thead>
<tbody>
{% for rule in resource.rules %}
<tr>
<td>
<a href="javascript:;"
onclick="context_menu(this, [{'contains': ['crowdstrike ioa rule id'], 'value': '{{ rule.instance_id }}' }], 0, {{ container.id }}, null, false);">
{{ rule.instance_id }}
&nbsp;
<span class="fa fa-caret-down" style="font-size: smaller;"></span>
</a>
</td>
<td>{{ rule.instance_version }}</td>
<td>{{ rule.enabled }}</td>
<td>{{ rule.name }}</td>
<td>{{ rule.description }}</td>
<td>{{ rule.ruletype_name }}</td>
<td>{{ rule.pattern_severity }}</td>
<td>{{ rule.action_label }}</td>
<td>{{ rule.field_values }}</td>
<td>{{ rule.comment }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
{% endfor %}
</div>
</div>
</div>
</div>
<br>
{% endif %}
{% endfor %} <!-- loop for each result end -->
Expand Down
52 changes: 52 additions & 0 deletions crowdstrike_update_ioa_rule_group.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,58 @@ <h3 class="wf-h3-style">Updated Rule Group</h3>
</div>
</div>
</div>
<h3 class="wf-h3-style">Rules</h3>
<div class="metadata_div">
<div class="panel-group">
<div class="panel">
<div id="default-view-table" class="panel-collapse collapse in">
{% for rule_group in result.data %}
{% for resource in rule_group.resources %}
<table class="wf-table-horizontal datatable">
<thead>
<tr>
<td>Rule ID</td>
<td>Rule Version</td>
<td>Enabled</td>
<td>Name</td>
<td>Description</td>
<td>Rule Type</td>
<td>Severity</td>
<td>Action</td>
<td>Field Values</td>
<td>Comment</td>
</tr>
</thead>
<tbody>
{% for rule in resource.rules %}
<tr>
<td>
<a href="javascript:;"
onclick="context_menu(this, [{'contains': ['crowdstrike ioa rule id'], 'value': '{{ rule.instance_id }}' }], 0, {{ container.id }}, null, false);">
{{ rule.instance_id }}
&nbsp;
<span class="fa fa-caret-down" style="font-size: smaller;"></span>
</a>
</td>
<td>{{ rule.instance_version }}</td>
<td>{{ rule.enabled }}</td>
<td>{{ rule.name }}</td>
<td>{{ rule.description }}</td>
<td>{{ rule.ruletype_name }}</td>
<td>{{ rule.pattern_severity }}</td>
<td>{{ rule.action_label }}</td>
<td>{{ rule.field_values }}</td>
<td>{{ rule.comment }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
{% endfor %}
</div>
</div>
</div>
</div>
<h3 class="wf-h3-style">Prevention Policies Attached</h3>
<div class="metadata_div">
<!--Default View-->
Expand Down
Loading

0 comments on commit a9cd6e8

Please sign in to comment.