Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queue state update1.0 #84

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions DoppelVision/DoppelVision.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"queries": [
{
"transient": false,
"queryString": "$$logsrc\n| where id = \"{{AlertId}}\" or \"{{AlertId}}\" = \"*\"\n| where product = \"{{ProductFilter}}\" or \"{{ProductFilter}}\" = \"*\"\n| where queue_state = \"{{AlertStatus}}\" or \"{{AlertStatus}}\" = \"*\"\n| where queue_state=\"reported\" or queue_state=\"needs_confirmation\"\n| dedup id\n| count",
"queryString": "$$logsrc\n| where id = \"{{AlertId}}\" or \"{{AlertId}}\" = \"*\"\n| where product = \"{{ProductFilter}}\" or \"{{ProductFilter}}\" = \"*\"\n| where queue_state = \"{{AlertStatus}}\" or \"{{AlertStatus}}\" = \"*\"\n| where queue_state=\"actioned\" or queue_state=\"needs_confirmation\"\n| dedup id\n| count",
"queryType": "Logs",
"queryKey": "A",
"metricsQueryMode": null,
Expand All @@ -130,7 +130,7 @@
"outputCardinalityLimit": 1000
}
],
"description": "Displays the report of needs_confirmation and reported status alerts",
"description": "Displays the report of needs_confirmation and actioned status alerts",
"timeRange": null,
"coloringRules": null,
"linkedDashboards": []
Expand Down Expand Up @@ -342,7 +342,7 @@
"type": "SavedSearchWithScheduleSyncDefinition",
"name": "Verified Alerts",
"search": {
"queryText": "$$logsrc \n| where queue_state in (\"reported\", \"needs_confirmation\")\n| dedup id",
"queryText": "$$logsrc \n| where queue_state in (\"actioned\", \"needs_confirmation\")\n| dedup id",
"byReceiptTime": false,
"viewName": "",
"viewStartTime": "1970-01-01T00:00:00Z",
Expand All @@ -351,7 +351,7 @@
"defaultTimeRange": "-24h"
},
"searchSchedule": null,
"description": "Displays the report of needs_confirmation and reported status alerts"
"description": "Displays the report of needs_confirmation and actioned status alerts"
}
]
}
2 changes: 1 addition & 1 deletion DoppelVision/resources/logs/DoppelVisionLogs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{"event_type":"alert_updated","timestamp":"2024-09-11T06:12:17.593210","updated_values":{"queue_state":"archived"},"alert":{"id":"MTN-19","doppel_link":"https://app.doppel.com/ecommerce/MTN-19","created_at":"2024-09-06T03:00:15.78332","entity":"fake_listing_v3","queue_state":"archived","entity_state":"resolved","severity":"medium","product":"ecommerce","source":"user_report","notes":"Issue resolved, no further action","uploaded_by":"[email protected]","tags":[]}}
{"event_type":"alert_updated","timestamp":"2024-09-11T06:12:17.593210","updated_values":{"queue_state":"monitoring"},"alert":{"id":"MTN-18","doppel_link":"https://app.doppel.com/mobile_apps/MTN-18","created_at":"2024-09-05T23:45:22.21211","entity":"suspicious_app_v3.apk","queue_state":"monitoring","entity_state":"active","severity":"low","product":"mobile_apps","source":"automated_scan","notes":null,"uploaded_by":"[email protected]","tags":[]}}
{"event_type":"alert_updated","timestamp":"2024-09-11T06:12:17.593210","updated_values":{"queue_state":"taken_down"},"alert":{"id":"MTN-17","doppel_link":"https://app.doppel.com/social_media/MTN-17","created_at":"2024-09-05T22:30:22.34567","entity":"@fake_account_v2","queue_state":"taken_down","entity_state":"resolved","severity":"critical","product":"social_media","source":"user_report","notes":null,"uploaded_by":"[email protected]","tags":[]}}
{"event_type":"alert_updated","timestamp":"2024-09-11T06:12:17.593210","updated_values":{"queue_state":"reported"},"alert":{"id":"MTN-16","doppel_link":"https://app.doppel.com/domains/MTN-16","created_at":"2024-09-05T20:30:54.11222","entity":"example3.com","queue_state":"reported","entity_state":"active","severity":"high","product":"domains","source":"api_detection","notes":null,"uploaded_by":"[email protected]","tags":[]}}
{"event_type":"alert_updated","timestamp":"2024-09-11T06:12:17.593210","updated_values":{"queue_state":"actioned"},"alert":{"id":"MTN-16","doppel_link":"https://app.doppel.com/domains/MTN-16","created_at":"2024-09-05T20:30:54.11222","entity":"example3.com","queue_state":"actioned","entity_state":"active","severity":"high","product":"domains","source":"api_detection","notes":null,"uploaded_by":"[email protected]","tags":[]}}
{"event_type":"alert_updated","timestamp":"2024-09-11T06:12:17.593210","updated_values":{"queue_state":"needs_confirmation"},"alert":{"id":"MTN-15","doppel_link":"https://app.doppel.com/paid_ads/MTN-15","created_at":"2024-09-05T18:45:23.98332","entity":"fraudulent_ad_v2","queue_state":"needs_confirmation","entity_state":"active","severity":"medium","product":"paid_ads","source":"user_report","notes":null,"uploaded_by":"[email protected]","tags":[]}}
{"event_type":"alert_updated","timestamp":"2024-09-11T06:12:17.593210","updated_values":{"queue_state":"doppel_review"},"alert":{"id":"MTN-14","doppel_link":"https://app.doppel.com/email/MTN-14","created_at":"2024-09-05T17:00:11.59293","entity":"phishing_email_v2","queue_state":"doppel_review","entity_state":"active","severity":"critical","product":"email","source":"ui_upload","notes":null,"uploaded_by":"[email protected]","tags":[]}}
{"event_type":"alert_updated","timestamp":"2024-09-11T06:12:17.593210","updated_values":{"queue_state":"archived"},"alert":{"id":"MTN-13","doppel_link":"https://app.doppel.com/crypto/MTN-13","created_at":"2024-09-05T13:55:19.28432","entity":"phishing_wallet_v2","queue_state":"archived","entity_state":"resolved","severity":"medium","product":"crypto","source":"user_report","notes":"No further action required","uploaded_by":"[email protected]","tags":[]}}
Binary file modified DoppelVision/resources/screenshots/DoppelVisionDashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/DoppelVision/resources/dashboards.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ resource "sumologic_dashboard" "doppel_vision_dashboard" {

panel {
sumo_search_panel {
description = "Displays the report of needs_confirmation and reported status alerts"
description = "Displays the report of needs_confirmation and actioned status alerts"
keep_visual_settings_consistent_with_parent = "true"
key = "panelPANE-13FB1B5988C95B4D"

query {
query_key = "A"
query_string = "${var.scope_key}={{${var.scope_key_variable_display_name}}} \n| where id = \"{{AlertId}}\" or \"{{AlertId}}\" = \"*\"\n| where product = \"{{ProductFilter}}\" or \"{{ProductFilter}}\" = \"*\"\n| where queue_state = \"{{AlertStatus}}\" or \"{{AlertStatus}}\" = \"*\"\n| where queue_state=\"reported\" or queue_state=\"needs_confirmation\"\n| dedup id\n| count"
query_string = "${var.scope_key}={{${var.scope_key_variable_display_name}}} \n| where id = \"{{AlertId}}\" or \"{{AlertId}}\" = \"*\"\n| where product = \"{{ProductFilter}}\" or \"{{ProductFilter}}\" = \"*\"\n| where queue_state = \"{{AlertStatus}}\" or \"{{AlertStatus}}\" = \"*\"\n| where queue_state=\"actioned\" or queue_state=\"needs_confirmation\"\n| dedup id\n| count"
query_type = "Logs"
}

Expand Down
4 changes: 2 additions & 2 deletions src/DoppelVision/resources/logSearches.tf
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ resource "sumologic_log_search" "total_alerts" {
}

resource "sumologic_log_search" "verified_alerts" {
description = "Displays the report of needs_confirmation and reported status alerts"
description = "Displays the report of needs_confirmation and actioned status alerts"
name = "Verified Alerts"
parent_id = sumologic_folder.integration_folder.id
parsing_mode = "Manual"
Expand All @@ -140,7 +140,7 @@ resource "sumologic_log_search" "verified_alerts" {
value = "${var.default_scope_value}"
}

query_string = "${var.scope_key}={{${var.scope_key_variable_display_name}}} \n| where queue_state in (\"reported\", \"needs_confirmation\")\n| dedup id"
query_string = "${var.scope_key}={{${var.scope_key_variable_display_name}}} \n| where queue_state in (\"actioned\", \"needs_confirmation\")\n| dedup id"
run_by_receipt_time = "false"

time_range {
Expand Down