Defang for VS Code
Defang and refang malicious indicators (IPv4, domains, URLs) for safe sharing in security contexts.
Features
- Defang Selection: Convert dangerous indicators to safe, non-clickable formats
- Refang Selection: Restore defanged indicators back to their original form
Defanging Examples
| Original |
Defanged |
https://malware.com |
hxxps://malware[.]com |
http://evil.org/path |
hxxp://evil[.]org/path |
192.168.1.1 |
192.168.1[.]1 |
bad.domain.com |
bad[.]domain[.]com |
Usage
- Select the text containing indicators you want to defang or refang
- Right-click to open the context menu
- Choose Defang Selection or Refang Selection
Alternatively, use the Command Palette (Cmd+Shift+P / Ctrl+Shift+P):
Defang Selection
Refang Selection
Use Cases
- Safely share IOCs (Indicators of Compromise) in reports and documentation
- Prevent accidental clicks on malicious URLs
- Share threat intelligence without triggering security tools
- Document malware analysis findings
Installation
Install from the VS Code Marketplace or search for "Defang" in the VS Code Extensions panel.
License
MIT
| |