Docs

Docs

  • Getting Started
  • Features
  • Docs
  • API
  • FAQS

›Audits

Getting Started

  • Introduction
  • Terms

Models

  • Analysis
  • Audit
  • Detection
  • Frame
  • Record
  • Report
  • Request
  • Target

Audits

  • Dialog Events
  • Download Events
  • History Events
  • Screenshots
  • Texts
  • Vibrate Events

Detections

  • Adware
  • Auto Download
  • Auto Redirect
  • Auto Redirect App Market
  • Auto Vibrate
  • Back Button Hijack
  • Blacklist
  • Browser Locker
  • Cryptocurrency Miner
  • JavaScript Dialog On Entry
  • JavaScript Dialog On Exit
  • Landing Page Error
  • Malicious URL
  • Malware
  • NSFW
  • Phishing URL
  • Potentially Unwanted Programs
  • Ransomware
  • Scareware
  • Suspicious TLD
  • SSL Non Compliant

GraphQL

  • Interfaces
  • Enums
  • Scalars
  • Account
  • AlertRules
  • Analysis
  • Consumption
  • Device
  • Location
  • Notification
  • Organization
  • Plan
  • Project
  • Recognition
  • User
  • Viewer
  • Violation

Dialog Events

Records the JavaScript dialog events triggered during an Analysis.

version  : 1.0.0
stability: stable

Definition


Meta

name     : "dialog-events"

Record

The Dialog Events's record implements the Record's interface:

interface Record {
  url: string;
  type: DialogEventType; // "ALERT" | "CONFIRM" | "PROMPT" | "BEFORE_UNLOAD" | "OTHER"
  data: string;
  trigger: string;
  requestId: string;
  frameId: string;
  targetVersion: string;
  timestamp: MonotonicTime;
}

Fields


url

version  : 1.0.0
stability: stable
url: string;

The URL of the page gathered when the event occurs.


type

version  : 1.0.0
stability: stable
type: DialogEventType;
enum DialogEventType {
  Alert = "ALERT",
  Confirm = "CONFIRM",
  Prompt = "PROMPT",
  BeforeUnload = "BEFORE_UNLOAD",
  Other = "OTHER",
}

The dialog's event that triggered the creation of the record.


data

version  : 1.0.0
stability: stable
data: string;

The data passed along with the event.

In the Dialog Events's context, this field reports a DialogEventRecordData entry as string:

interface DialogEventRecordData {
  message: string;
}
  • message: The message returned by the dialog event.

trigger

version  : 1.0.0
stability: experimental
trigger: string;

When defined, the trigger reports the action that creates the Dialog Events.


requestId

version  : 1.0.0
stability: stable
requestId: string;

The unique network Request's identifier in which the event was recorded.

⚠️ Caution: In some cases such as in a redirection context, this identifier could be shared by more than one entry:

[
  {
    "requestId": "10.1",
    "status": "302"
  },
  {
    "requestId": "10.1",
    "status": "200"
  }
]

frameId

version  : 1.0.0
stability: stable
frameId: string;

The Frame identifier in which the event was recorded.


targetVersion

version  : 1.0.0
stability: stable
targetVersion: string;

The Target version during which the event was recorded.


timestamp

version  : 1.0.0
stability: stable
timestamp: MonotonicTime;

An MonotonicTime that reflects the time when the event was recorded.


Sample

{
  "name": "dialog-events",
  "records": [
    {
      "url": "https://example.com",
      "type": "ALERT",
      "data": "{\"message\":\"Hello world!\"}",
      "trigger": "",
      "requestId": "6A84237A55993581955FEBCCBED0D402",
      "frameId": "C9FB7BD57BBC8502412B9558A97A580D",
      "targetVersion": "8",
      "timestamp": "2375.395531"
    }
  ]
}
← TargetDownload Events →
  • Definition
    • Meta
    • Record
  • Fields
    • url
    • type
    • data
    • trigger
    • requestId
    • frameId
    • targetVersion
    • timestamp
  • Sample
Copyright © 2024 AdSecure