Cybersecurity

URL Defanging Styles

Compare the three major URL defanging styles used in cybersecurity - CyberChef, Bracket, and Aggressive formats - and learn which one to use for different threat intelligence scenarios.

By Inventive HQ Team

URL defanging rewrites a malicious link so it cannot be clicked or auto-linked, and three styles dominate: CyberChef (hxxps://evil[.]com — compact, the threat-intel standard), Bracket (https[:]//evil[.]com — every separator wrapped, best for legal and compliance), and Aggressive (h**ps[PROTOCOL]evil[DOT]com — word placeholders, best for training). Pick CyberChef for security-team and IOC sharing, Bracket for formal or cross-organization documentation, and Aggressive for non-technical audiences and slides. All three are display-only conventions — none of them sanitizes or blocks the underlying infrastructure, so a defanged URL is still live and must only be refanged inside an isolated environment.

That is the summary an AI Overview would give you. Here is what it cannot show you — the same URL side by side in all three styles, a decision map that turns "who is my audience" into a concrete format, and refang logic for each. Start with the visual comparison below.

One URL defanged in three styles The URL https://attacker-c2.evil.com:8080/beacon.php shown in CyberChef, Bracket, and Aggressive defanging styles, from most compact to most verbose. One URL, three defanging styles Original (live — do not click): https://attacker-c2.evil.com:8080/beacon.php CyberChef · compact · threat-intel standard hxxps://attacker-c2[.]evil[.]com:8080/beacon[.]php Bracket · explicit · legal & compliance https[:]//attacker-c2[.]evil[.]com[:]8080/beacon[.]php Aggressive · verbose · training & slides h**ps[PROTOCOL]attacker-c2[DOT]evil[DOT]com[COLON]8080[SLASH]beacon[DOT]php ▲ safer verbose ▼

The Three Major Defanging Styles

In the cybersecurity community, three primary URL defanging styles have emerged, each with distinct characteristics, advantages, and use cases. Understanding these formats helps security professionals communicate effectively with different audiences and choose the right approach for their specific needs.

All three styles serve the same fundamental purpose—making potentially malicious indicators safe to share—but they differ significantly in their implementation, reversibility, and community adoption.

CyberChef Style: The Community Standard

Format Specification

The CyberChef style, named after the popular open-source data transformation tool developed by GCHQ (UK's intelligence agency), has become the de facto standard in the threat intelligence community:

Protocol transformation:

  • http:// becomes hxxp://
  • https:// becomes hxxps://

Domain and IP transformation:

  • Replace periods (.) with [.]

Complete example:

Original: https://malicious-site.com/payload.exe
Defanged: hxxps://malicious-site[.]com/payload[.]exe

Original: http://192.168.1.100:8080/beacon
Defanged: hxxp://192[.]168[.]1[.]100:8080/beacon

Widespread Recognition: Security professionals worldwide instantly recognize hxxp and [.] as defanged indicators. This shared language facilitates communication across organizations, conferences, and public forums.

Tool Support: Virtually every threat intelligence platform, SIEM, and security tool supports CyberChef-style defanging:

  • MISP (Malware Information Sharing Platform)
  • OpenCTI (Open Cyber Threat Intelligence)
  • TheHive (incident response platform)
  • AlienVault OTX (Open Threat Exchange)
  • VirusTotal comments and reports

Easy Refanging: Converting CyberChef-defanged URLs back to their original form requires only simple find-and-replace operations:

def refang_cyberchef(defanged_url):
    refanged = defanged_url.replace('hxxp://', 'http://')
    refanged = refanged.replace('hxxps://','https://')
    refanged = refanged.replace('[.]', '.')
    return refanged

Compact Format: CyberChef-style defanging adds minimal characters (two extra brackets per period), keeping indicators readable and space-efficient—critical for Twitter threads, Slack messages, and dense threat reports.

Historical Precedent: The format originated from early malware analysis communities and has been refined over 15+ years of practical use.

When to Use CyberChef Style

Threat Intelligence Reports: When publishing research, IOC lists, or campaign analysis for the security community.

Example:

## Campaign Infrastructure

C2 Servers:
- hxxps://c2-primary[.]evil-domain[.]com
- hxxp://185[.]220[.]101[.]44:443
- hxxps://backup-c2[.]malicious[.]net

Phishing URLs:
- hxxps://paypa1-secure[.]com/login
- hxxps://microsoft-verify[.]tk/oauth

OSINT Sharing: When posting findings on Twitter, Reddit, or security forums where CyberChef style is expected.

Malware Analysis Writeups: Technical blog posts breaking down malware samples and their infrastructure.

Security Team Communications: Internal Slack channels, email threads, and collaboration where team members understand the format.

Bracket Style: Explicit and Formal

Format Specification

The Bracket style surrounds ALL special characters with brackets, providing explicit notation:

Complete bracketing:

  • :// becomes [:]// or [://]
  • . becomes [.]
  • : (port separator) becomes [:]
  • @ becomes [@]

Complete examples:

Original: https://malicious.com:8080/path
Defanged: https[:]//malicious[.]com[:]8080/path

Original: http://attacker@evil.com
Defanged: http[:]//attacker[@]evil[.]com

Original: 192.168.1.1:443
Defanged: 192[.]168[.]1[.]1[:]443

Advantages of Bracket Style

Maximum Clarity: Every defanged character is explicitly marked, leaving no ambiguity about which parts have been modified.

Consistent Pattern: The uniform bracketing approach makes it easy to identify all transformed characters at a glance.

Educational Value: Perfect for training materials where you want to emphasize which characters make URLs "active."

Format Flexibility: Some implementations bracket the entire protocol ([http://]) for even more explicit defanging.

Formal Documentation: Suits academic papers, compliance reports, and official documentation where precision is paramount.

Refanging Bracket Style

Refanging bracket-style URLs requires stripping all brackets:

import re

def refang_bracket(defanged_url):
    # Remove all bracket pairs
    refanged = re.sub(r'\[([^\]]+)\]', r'\1', defanged_url)
    return refanged

# Example
defanged = "https[:]//evil[.]com[:]8080/path"
original = refang_bracket(defanged)
# Result: "https://evil.com:8080/path"

When to Use Bracket Style

Compliance Documentation: When submitting IOCs to regulatory bodies, law enforcement, or audit reports.

Example:

Incident Report #2025-0042

Malicious indicators observed:
- URL: http[:]//phishing-site[.]com/verify
- Email: attacker[@]malicious[.]net
- IP: 203[.]0[.]113[.]42[:]8080

Academic Research: Security research papers published in journals or presented at conferences.

Cross-Organization Sharing: When sharing IOCs with partners who may not be familiar with CyberChef conventions.

Legal Evidence: Court filings or law enforcement reports where explicit notation prevents misinterpretation.

Aggressive Style: Maximum Safety

Format Specification

The Aggressive style replaces characters with descriptive text placeholders:

Descriptive replacements:

  • http:// becomes h**p[PROTOCOL]
  • https:// becomes h**ps[PROTOCOL]
  • . becomes [DOT]
  • : becomes [COLON]
  • / becomes [SLASH]
  • @ becomes [AT]

Complete examples:

Original: https://malicious.com/payload.exe
Defanged: h**ps[PROTOCOL]malicious[DOT]com[SLASH]payload[DOT]exe

Original: http://192.168.1.1:8080
Defanged: h**p[PROTOCOL]192[DOT]168[DOT]1[DOT]1[COLON]8080

Original: attacker@phishing.net
Defanged: attacker[AT]phishing[DOT]net

Advantages of Aggressive Style

Impossible to Mistake: No one could accidentally treat h**ps[PROTOCOL]evil[DOT]com as a real URL—it's unmistakably defanged.

Self-Documenting: Each placeholder explains what it represents ([DOT], [COLON], [SLASH]), making it perfect for audiences unfamiliar with defanging.

Training Excellence: Ideal for security awareness training where you want employees to understand the concept immediately.

Maximum Safety: Even buggy parsers or aggressive auto-linkers won't accidentally activate these URLs.

Presentation-Friendly: Great for slides, videos, and screenshots where clarity trumps brevity.

Advertisement

Disadvantages of Aggressive Style

Verbose: Takes significantly more space than other formats, problematic for dense reports or character-limited platforms (Twitter, text messages).

Non-Standard: Not widely adopted in professional threat intelligence sharing, requiring explanation for recipients.

Complex Refanging: Requires custom parsers and careful mapping of placeholders back to original characters:

def refang_aggressive(defanged_url):
    replacements = {
        '[PROTOCOL]': '://',
        '[DOT]': '.',
        '[COLON]': ':',
        '[SLASH]': '/',
        '[AT]': '@',
        'h**p': 'http',
        'h**ps': 'https'
    }

    refanged = defanged_url
    for placeholder, original in replacements.items():
        refanged = refanged.replace(placeholder, original)

    return refanged

Readability Trade-off: While unmistakably defanged, the verbose format can be harder to quickly parse, especially in long IOC lists.

When to Use Aggressive Style

Security Awareness Training: Teaching employees about phishing, malware, and safe URL handling.

Example:

⚠️ Phishing Example (DO NOT CLICK):

Fake URL: h**ps[PROTOCOL]paypa1-secure[DOT]com[SLASH]verify

Real PayPal: https://www.paypal.com

Public Presentations: Conference talks, webinars, YouTube videos where URLs need to be unmistakably safe.

Screenshots and Documentation: When capturing IOCs in images where viewers might not understand subtle defanging.

Executive Summaries: Reports for non-technical stakeholders who need to understand threats without security background.

Social Media Posts: Blog comments, forum posts, or social media where automated parsers are aggressive.

Comparative Analysis

Format Comparison Table

FeatureCyberChefBracketAggressive
Recognition★★★★★ Universal★★★☆☆ Formal★★☆☆☆ Limited
Brevity★★★★★ Compact★★★★☆ Moderate★★☆☆☆ Verbose
Clarity★★★★☆ Clear★★★★★ Explicit★★★★★ Unmistakable
Refanging★★★★★ Trivial★★★★☆ Easy★★★☆☆ Complex
Tool Support★★★★★ Universal★★★★☆ Good★★☆☆☆ Limited
Training Value★★★☆☆ Assumed knowledge★★★★☆ Educational★★★★★ Self-explanatory

Example Comparison

Same URL in all three formats:

Original URL:
https://attacker-c2.evil-domain.com:8080/api/beacon.php

CyberChef Style:
hxxps://attacker-c2[.]evil-domain[.]com:8080/api/beacon[.]php

Bracket Style:
https[:]//attacker-c2[.]evil-domain[.]com[:]8080/api/beacon[.]php

Aggressive Style:
h**ps[PROTOCOL]attacker-c2[DOT]evil-domain[DOT]com[COLON]8080[SLASH]api[SLASH]beacon[DOT]php

Hybrid Approaches

Some organizations combine styles for different parts of their workflows:

Tiered Communication

Internal analysts (CyberChef): Quick, efficient communication within security teams who understand the format.

Cross-department sharing (Bracket): More explicit format when sharing with IT, legal, or management.

External training (Aggressive): Maximum clarity for customer-facing security awareness materials.

Context-Sensitive Defanging

Technical reports: CyberChef for space efficiency Email signatures: Bracket for formal communications Help desk articles: Aggressive for end-user clarity

Choosing the Right Style

Decision Map

Which defanging style to use, by audience A decision flow: start from who will read the indicator, branching to CyberChef for security teams, Bracket for legal or compliance, and Aggressive for non-technical or training audiences. Who will read this indicator? Pick your audience then follow the branch Security analysts IOC feeds · MISP · reports Legal · compliance filings · partner sharing Non-technical training · slides · execs CyberChef hxxps://evil[.]com Bracket https[:]//evil[.]com Aggressive h**ps[PROTOCOL]evil[DOT]com

Decision Framework

Ask yourself:

1. Who is the audience?

  • Security professionals → CyberChef
  • Formal/legal contexts → Bracket
  • General public/training → Aggressive

2. What's the distribution channel?

  • Threat intelligence platforms → CyberChef
  • Email/documents → Bracket or CyberChef
  • Presentations/training → Aggressive

3. How important is space efficiency?

  • Twitter/SMS/dense reports → CyberChef
  • Standard documents → Bracket
  • Clarity over brevity → Aggressive

4. Will recipients need to refang?

  • Yes, immediately → CyberChef
  • Yes, eventually → Bracket
  • No, display only → Aggressive

5. Is tool compatibility crucial?

  • MISP/SIEM integration → CyberChef
  • Manual processing → Any style
  • Automated parsing → CyberChef or Bracket

Best Practices

Consistency Within Documents

Once you choose a style, stick with it throughout a single document or communication:

❌ INCONSISTENT:
- hxxps://evil[.]com (CyberChef)
- https[:]//bad[.]net (Bracket)
- h**ps[PROTOCOL]ugly[DOT]org (Aggressive)

✅ CONSISTENT:
- hxxps://evil[.]com
- hxxps://bad[.]net
- hxxps://ugly[.]org

Documenting Your Choice

Include a note explaining your defanging format, especially for external recipients:

## Indicators of Compromise

Note: URLs are defanged using CyberChef format (hxxp/hxxps and [.])
to prevent accidental clicks. Replace hxxp→http, hxxps→https, [.]→.
to restore original URLs for analysis in controlled environments.

Malicious domains:
- hxxps://phishing-site[.]com
- hxxp://malware-cdn[.]net

Automation and Tooling

Use dedicated tools rather than manual find-and-replace to ensure consistency and avoid errors:

  • CyberChef: Web-based, supports all formats
  • Python libraries: iocextract, defang
  • Online tools: Our URL Defanger supports all three formats with one-click conversion

Conclusion

While CyberChef style dominates professional threat intelligence sharing, Bracket and Aggressive formats each serve important niches. Understanding all three enables you to communicate effectively across different contexts:

  • CyberChef for daily security operations and threat intelligence
  • Bracket for formal documentation and cross-organizational sharing
  • Aggressive for training, awareness, and general public communication

The key is choosing the right tool for your audience and use case, then applying it consistently. Whichever format you choose, the goal remains the same: safely sharing threat intelligence without putting your colleagues, organization, or community at risk.

Need to convert between formats or defang URLs quickly? Try our URL Defanger Tool with support for all three major defanging styles and automatic format detection for refanging.

Frequently Asked Questions

What is the difference between CyberChef, Bracket, and Aggressive defanging?

All three neutralize a URL so it cannot be clicked, but they differ in how much they change. CyberChef style rewrites the scheme (hxxp/hxxps) and wraps only periods as [.], keeping the URL compact and instantly recognizable. Bracket style wraps every structural character — periods, colons, and @ signs — in square brackets for explicit, unambiguous notation. Aggressive style goes furthest, replacing characters with word placeholders like [DOT], [COLON], and [SLASH] so no parser or human could mistake it for a live link.

Which URL defanging style should I use?

Use CyberChef style (hxxps://evil[.]com) for threat-intelligence reports, IOC feeds, MISP, and anything security professionals will read — it is the de facto standard and refangs with a simple find-and-replace. Use Bracket style for legal filings, compliance reports, and cross-organization sharing where explicit notation matters. Use Aggressive style for security-awareness training, slides, and non-technical audiences where clarity beats brevity.

What does hxxp mean?

hxxp is a defanged form of http where the two 't' characters are replaced with 'x' so the string is no longer parsed as a clickable link; hxxps is the defanged form of https. Combined with wrapping periods as [.], this is the CyberChef convention that dominates threat-intelligence sharing. To refang, replace hxxp with http, hxxps with https, and [.] with a period.

How do I refang a defanged URL?

For CyberChef style, replace hxxps with https, hxxp with http, and [.] with a period. For Bracket style, strip every pair of square brackets and keep the character inside — a single regex like [([^]]+)] to \1 does it. For Aggressive style, map each placeholder back ([DOT] to a period, [COLON] to a colon, [SLASH] to a slash, [AT] to @, [PROTOCOL] to ://) then restore hp/hps. Always refang only inside an isolated analysis environment.

Is URL defanging a security control?

No. Defanging is a display convention, not a security control — it only prevents accidental clicks and auto-linking in chat, email, and ticketing tools. It does not sanitize, block, or detonate the URL. The malicious infrastructure behind the indicator is unchanged; treat every defanged URL as live and only refang it inside an isolated sandbox or analysis VM.

Why do you replace periods with [.] when defanging URLs?

Chat clients, email readers, ticketing systems, and social platforms auto-detect anything that looks like a domain and turn it into a clickable hyperlink. Wrapping the dots as example[.]com breaks that pattern match so the link is never rendered, while a human can still read the domain at a glance. The scheme is also broken (hxxp) so even a copy-paste into a browser bar will not resolve.

Do defanging styles work with IPv6 addresses and email addresses?

Yes. For IPv6 you defang the colons — 2001[:]db8[:][:]1 in bracket style — because the colon is the structural separator. For email addresses, defang the @ and the dots: attacker[@]evil[.]com in bracket style, or user[AT]evil[DOT]net in aggressive style. CyberChef style traditionally touches only periods and the scheme, so many analysts add [@] and [:] manually for IPv6 and email indicators.

Which defanging style is best for a threat-intelligence report?

CyberChef style. It is universally recognized across MISP, OpenCTI, TheHive, AlienVault OTX, and VirusTotal, refangs trivially, and stays compact enough for dense IOC tables and character-limited platforms. Add a one-line note stating the format so external recipients know exactly how to restore the indicators.

Can defanged URLs still be dangerous?

Yes. Defanging changes only how the string is displayed, not what it points to. A defanged URL copied, refanged, and pasted into a browser reaches the exact same malicious host. Defanging protects against the accidental click, not against deliberate refanging — which is why analysts refang only inside isolated environments and never on a production workstation.

url-defangingcyberchefiocthreat-intelligencesecurity