sublime-security / mql-vscode

Visual Studio Code extension for Message Query Language (MQL)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Message Query Language (MQL) extension for Visual Studio Code

Sublime prevents email attacks using AI and Detection-as-Code. Gain visibility and control, hunt for advanced threats, and spend less time on email-originated incidents.

Use the Sublime Platform to:

  • block email attacks such as phishing, BEC, and malware
  • hunt for threats over email
  • auto-triage user reports with phishing herd immunity and Triage rules

At its core, Sublime is a rules engine that ingests email messages from arbitrary sources, parsing to a structured *Message Data Model (MDM) which powers rules written in Message Query Language (MQL). When rules match, actions are taken such as generating a webhook notification or inserting a warning banner. Emails are extracted Below is an example of a simple rule:

name: HTML smuggling via attachment
severity: high
source: |
  type.inbound
  and any(attachments, .file_extension in~ ('html', 'htm') 
          and any(file.explode(.),
                  any(.scan.javascript.identifiers, . == "unescape")
          )
  )
tags:
  - "HTML smuggling"

The MQL extension for Visual Studio code provides validation and completion capabilities

  • Syntax highlighting
  • ChatGPT based completion for line comments (requires openAIKey in settings)
  • Autocompletion (if the Language Server is enabled)
  • Validation of functions and types (if the Language Server is enabled)
  • Diagnostic hints, warnings, and errors (if the Language Server is enabled)

Resources

About

Visual Studio Code extension for Message Query Language (MQL)

License:MIT License


Languages

Language:TypeScript 94.6%Language:JavaScript 5.4%