Skip to content

Instantly share code, notes, and snippets.

@jpsenior
Created October 21, 2015 00:21
Show Gist options
  • Save jpsenior/a7b76eda5ca236da55c2 to your computer and use it in GitHub Desktop.
Save jpsenior/a7b76eda5ca236da55c2 to your computer and use it in GitHub Desktop.
--- a/web/templates/analysis/overview/_signatures.html
+++ b/web/templates/analysis/overview/_signatures.html
@@ -30,31 +30,33 @@
{{signature.description}}</div></a>
<div id="signature_{{signature.name}}" class="collapse">
+ Severity: {{ signature.severity }} || Signature Name: {{ signature.name }}
<table class="table table-bordered" style="table-layout: fixed;">
<tbody>
{% for mark in signature.marks|slice:":50" %}
- <tr>
- {% if mark.type == "call" %}
- {% include "analysis/behavior/_api_call.html" with call=mark.call %}
+ {% if mark|get_item:"_type" == "call" %}
+ <tr>
+ <td> JP's Debug for type "Call" </td>
+ <td> <strong>CID:</strong> {{ mark|get_item:"_cid" }}</td>
+ <td><strong>PID:</strong> {{ mark|get_item:"_pid" }}</td>
+ <td><strong>Type:</strong> {{ mark|get_item:"_type" }}</td>
+ </tr>
+ {% include "analysis/behavior/_api_call.html" with call=mark %}
<td>
- <a href="#" class="call-link" data-pid="{{mark.pid}}" data-cid="{{mark.cid}}">
+ <a href="#" class="call-link" data-pid="{{mark|get_item:"_pid"}}" data-cid="{{mark|get_item:"_cid"}}">
<span class="glyphicon glyphicon-circle-arrow-right"></span>
</a>
</td>
- {% elif mark.type == "ioc" %}
- <td colspan="2">{{mark.category}}</td>
- <td colspan="5">{{mark.ioc}}</td>
+ {% elif mark|get_item:"_type" == "ioc" %}
+ <td colspan="2">{{mark|get_item:"_category" }}</td>
+ <td colspan="5">{{mark|get_item:"_ioc" }}</td>
{% else %}
- <td colspan="2">{{mark.type}}</td>
+ <td colspan="2">Fallback: {{mark|get_item:"_type"}}</td>
<td colspan="5">
- {% if sign.value|is_dict %}
- {% for key, value in sign.value.items %}
- <span class="sign-key">{{key}}:</span>
- <span class="sign-value">{{value}}</span><br />
- {% endfor %}
- {% else %}
- {{sign.value}}
- {% endif %}
+ {% for key, value in mark %}
+ <span class="key">{{key}}:</span>
+ <span class="value">{{value}}</span><br />
+ {% endfor %}
</td>
{% endif %}
</tr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment