<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
---
name: analyzing-webrtc-security
description: >-
  Analyze WebRTC security including ICE candidate leakage, SRTP configuration, TURN server authentication, and media stream access control in peer-to-peer communications.
domain: cybersecurity
subdomain: browser-security
tags:
  - webrtc
  - ice-leak
  - srtp
  - peer-to-peer
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1071.001"]
  frameworks: ["MITRE ATT&CK", "OWASP"]
  tools: ["wireshark", "devtools", "opal"]
---

# Analyzing Webrtc Security

## Overview

Analyze WebRTC security including ICE candidate leakage, SRTP configuration, TURN server authentication, and media stream access control in peer-to-peer communications.

## Prerequisites

| Tool / Requirement | Details |
|---|---|
| `wireshark` | Security tooling |
| `devtools` | Security tooling |
| `opal` | Security tooling |
| Browser DevTools, Wireshark, WebRTC internals (chrome://webrtc-internals) | Environment requirement |

## Quick Reference

```bash
# Quick start commands
node scripts/agent.js --help
node scripts/agent.js analyze --url https://target.com --check ice-leak
```

## Workflow

### Step 1: Check ICE Candidate Leakage

```bash
node scripts/agent.js analyze --url https://target.com --check ice-leak
```

### Step 2: Audit STUN/TURN Config

```bash
node scripts/agent.js audit --url https://target.com --check turn-auth
```

### Step 3: Test Media Access Controls

```bash
node scripts/agent.js test --url https://target.com --vector media-access
```

## Detection

```yaml
title: Webrtc Security Detection
id: 1b583f1f-bef8-43ac-be2d-eb63c7fdf292
status: experimental
description: Detects suspicious activity related to analyzing webrtc security techniques in browser security context
logsource:
  category: proxy
  product: windows
detection:
  selection:
    cs_uri_query: "*script*"
  condition: selection
level: medium
tags:
  - attack.t1071.001
  - attack.initial_access
falsepositives:
  - Browser security extensions performing routine URL reputation checks
```


**Detection Opportunities**

| Indicator | Source | Detection Logic |
|---|---|---|
| Webrtc Security Detection | windows/proxy | Sigma rule (medium) |
| ATT&CK Coverage | MITRE ATT&CK | T1071.001 |

## Verification

- **Verify ICE leak check**: `node scripts/agent.js analyze --url https://target.com --check ice-leak`
- **Confirm TURN security**: `node scripts/agent.js audit --url https://target.com --check turn-auth`

## References

- MITRE ATT&CK: T1071.001
- Frameworks: MITRE ATT&CK, OWASP
- Tools: wireshark, devtools, opal
