Opsec logo

Opsec

Community
mrhlaingbwardev
opsec

Use as pre-validation layer BEFORE any other skill. Activates when user says any security/attack/scan command. Ensures VPN is connected, user agents rotate, fingerprint is clean, and operational environment is isolated from personal identity. This runs FIRST before any other skill executes.

Overview

Publishermrhlaingbwardev
Repositoryagentic-hacking-skills
Skill nameopsec
Stars
350
Forks
57
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by mrhlaingbwardev on GitHub. Read the source before you install it.

Installation

Install the Opsec AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/mrhlaingbwardev/agentic-hacking-skills/tree/main/skills/opsec
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mrhlaingbwardev/agentic-hacking-skills.git /tmp/agentic-hacking-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-hacking-skills/skills/opsec .claude/skills/opsec
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Opsec in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Opsec on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Opsec is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Operational Security (OPSEC) - PRE-FLIGHT CHECKLIST

TRIGGER RULES

AUTOMATICALLY activates before ANY other skill when user says: anything targeting a domain/IP or involving security testing. This is the FIRST check - nothing runs without OPSEC validation.


GOLDEN RULES (NEVER BREAK THESE)

Rule 1: THE ORIGIN MUST NEVER BE VISIBLE - EVER

This is the single most important rule. The target must NEVER be able to trace anything back to the operator's origin country.

yaml
❌ NEVER expose:
  - Origin timezone
  - Origin language setting
  - Origin IP addresses
  - Origin VPN exit nodes
  - Origin names, emails, phone numbers
  - Origin bank accounts or payment methods
  - Origin keyboard layout or typing patterns
  - Origin cultural references in any pretext
  - Fonts or character sets that reveal the origin OS
  - Browser history or bookmarks with origin sites
  - Any document metadata (author, company, language)

✅ ALL operations must point to a PLAUSIBLE DIFFERENT COUNTRY:
  - Choose ONE cover country per campaign
  - Every single detail must match that country
  - VPN exit → that country
  - Timezone → that country
  - Browser language → that country
  - Created accounts → names from that country
  - Emails → patterns common in that country
  - Online behavior → typical of that country's users

Good cover countries: Singapore, Malaysia, Thailand, Vietnam, Japan, South Korea,
or Western countries matching the target language

Rule 1b: CONSISTENT COVER IDENTITY

Every piece of evidence must tell the SAME story:

yaml
If your cover is "Singapore-based IT contractor":
  - VPN exit: Singapore IP (residential, not datacenter)
  - Timezone: UTC+8 (Singapore)
  - Language: en-SG, zh-SG, ms-SG
  - Names: Singaporean Chinese/Malay/Indian names
  - Email: singapore-based provider, .sg domain
  - Browser behavior: Singapore patterns
  - Working hours: Singapore business hours
  - No origin timezone, no origin language, NO ORIGIN SIGNALS

Rule 2: SEPARATE IDENTITIES

Personal: Google account, real name, real phone, home IP, personal email
Cover ID: Fake identity matching cover country
Operational: Burner email, fake name (cover country), VPN IP, burner phone
NEVER THE THREE SHALL MEET

Rule 3: ONE-USE INFRASTRUCTURE

  • Each campaign/target gets NEW: VPN, email, accounts, domains
  • Never reuse between targets
  • Never reuse between campaigns on same target

Rule 4: ASSUME YOU'RE WATCHED

  • Everything you do creates telemetry
  • The target's SOC is watching
  • Your ISP/webhost logs everything
  • The only question is: does your traffic look suspicious?

PRE-FLIGHT CHECKLIST (RUN THESE BEFORE ANY COMMAND)

[ ] CHECK 1: VPN STATUS

powershell
# 1. Check current IP
$before = (Invoke-WebRequest -Uri "https://api.ipify.org" -UseBasicParsing).Content
Write-Output "Current IP: $before"

# 2. Verify VPN shows different IP from origin country
# The target should see: a different country, residential IP preferred

# 3. Verify no DNS leaks
$dns = (Resolve-DnsName -Name api.ipify.org -Server 8.8.8.8).IPAddress
Write-Output "DNS resolves to: $dns"
# If DNS != your ISP's DNS, you're leaking

# 4. VPN Kill Switch: if VPN drops, block all traffic
# Windows: check if kill switch is configured in your VPN client

VPN REQUIREMENTS:

  • NO free VPNs (they log, sell data, are flagged)
  • NO known pentest VPNs (PIA, Windscribe, Mullvad are flagged)
  • Residential IP preferred (not datacenter IP - those are easy to block)
  • Exit in target's region or COVER country (exiting in the origin country gives you away instantly)
  • Pay with Monero or anonymous crypto, never personal card
  • Separate VPN per target, never same exit node across campaigns
  • VPN provider based in COVER country if possible, or privacy-friendly jurisdiction

[ ] CHECK 2: BROWSER FINGERPRINT

javascript
// Before touching target, check what browser exposes:
// https://amiunique.org or browserleaks.com

// Check these:
1. User-Agent: is it updated? recent Chrome/Firefox/Edge?
2. Screen resolution: matches your declared OS?
3. Timezone: matches your VPN exit country?
4. Language: matches your supposed location?
5. WebGL: unique fingerprint. Consider spoofing.
6. Canvas fingerprint: very unique. Consider spoofing.
7. Fonts: OS font list is unique to your machine.
8. Plugins: disable unnecessary browser plugins.
9. WebRTC: can leak real IP even behind VPN (DISABLE IT!)
10. Cookies: clear all before starting new target.

[ ] CHECK 3: USER AGENT PREPARATION

powershell
# User Agent rotation strategy:
# NEVER use the same UA twice for same target

# UA Rotation Pool (rotate through these):

$uaPool = @(
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/126.0.0.0 Safari/537.36",
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0",
    "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 Safari/605.1.15",
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0",
    "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 Chrome/125.0.0.0 Safari/537.36",
    "Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 Mobile/15E148"
)

# Pick random UA, use for this session only
$selectedUA = $uaPool | Get-Random

UA Rotation Rules:

  • Rotate EVERY request to the target
  • Match UA to the tool being used (curl vs browser vs script)
  • Mobile UAs for mobile endpoints
  • Desktop UAs for web apps
  • Never use default tool UAs (curl/7.x, python-requests, go-http-client)


COUNTRY ATTRIBUTION COVER - THE CRITICAL DETAILS

Why Attribution Analysis Is Your Biggest Threat

Nation-states and SOCs use ATTRIBUTION to identify attackers. They don't block you immediately - they watch, profile, and trace back. Every digital fingerprint tells a story:

yaml
They check:
  🌐 IP geolocation → "Where is this person?"
  ⏰ Active hours → "What timezone do they live in?"
  🌍 Browser language → "What language do they speak?"
  ⌨️ System fonts → "What OS/language pack?"
  📧 Email patterns → "What culture/locale?"
  💳 Payment methods → "Where do they bank?"
  🧾 Domain registration → "Who are they really?"
  👤 Social media → "What is their real identity?"

If ANY two signals point to the origin, attribution starts. If THREE+ signals point to the origin, you are identified.

The Signal Map: What Your Op Reveals

SignalWhat It TellsHow It Betrays The Origin
IP geolocationCountryAny origin-country IP = instant flag
TimezoneActive hoursActivity during origin-country night hours
Language headerBrowser localeOrigin language code in Accept-Language
System fontsOS localeNative-script fonts in the font list
Keyboard layoutTypist's languageOrigin keyboard layout
Typing patternsNative languageTyping speed, errors, spacing characteristic of origin users
Working hoursTimezoneActivity during origin business hours for a mismatched cover
Search historyLanguage & regionOrigin-language searches, origin ccTLD sites
Payment methodCitizenshipOrigin bank card, origin payment apps
Email providerRegionOrigin-specific provider, origin ccTLD email
Social mediaReal identityFriends and posts from the origin country
Code commitsIdentityOrigin name, origin timezone, origin code in profile
Domain WHOISIdentityOrigin address, phone, email in WHOIS
SSL certificateOrganizationOrigin org name in cert
DNS serversProviderOrigin DNS hosting
Content languageNative languageOrigin language in phishing pages, comments, commit messages
Tools/payloadsSignatureTools known to be used by origin-based groups

The Cover Country Strategy

yaml
For EACH campaign, choose a cover country. Then SCORCH everything else:

✅ COVER COUNTRY SIGNALS (ALL MUST MATCH):
  [✓] VPN exit in cover country (residential IP)
  [✓] Browser language = cover country's language
  [✓] Timezone = cover country's timezone
  [✓] Active hours = cover country's business hours
  [✓] Names/identities = cover country's naming conventions
  [✓] Email provider popular in cover country
  [✓] System fonts = typical for cover country OS
  [✓] Payment method from cover country
  [✓] All written content in cover country's dialect

❌ ORIGIN SIGNALS (ZERO TOLERANCE):
  [✗] NO origin-country IP (any VPN exit must be cover country)
  [✗] NO origin timezone (set system to cover country's tz)
  [✗] NO origin language (remove from browser completely)
  [✗] NO origin fonts installed on op machine
  [✗] NO origin keyboard layout on op machine
  [✗] NO writing in the origin language during any ops communication
  [✗] NO origin names in any account creation
  [✗] NO origin payment methods (cards, payment apps)
  [✗] NO origin phone numbers (even burner SIMs)
  [✗] NO origin ccTLD email domains
  [✗] NO origin social media activity during campaign
  [✗] NO origin websites in browser history
  [✗] NO origin ccTLD domains in DNS cache or history
  [✗] NO origin-language code comments or variable names
  [✗] NO origin cultural references in pretexts

Cover Country Selection Guide

yaml
Pick based on TARGET LOCATION:

Target in USA/UK/Australia:
  Cover: USA (California/New York), UK, Canada, Australia
  🚫 Do NOT use: the origin country or nearby countries

Target in Singapore/Malaysia:
  Cover: Singapore, Malaysia, Australia, UK
  🚫 Do NOT use: the origin country or nearby countries

Target in Japan/Korea:
  Cover: Japan, South Korea, USA
  🚫 Do NOT use: the origin country or nearby countries

Target in Thailand:
  Cover: Singapore, Malaysia, USA, UK
  🚫 Do NOT use: the origin country (too close, easy cross-reference)

Target in EU:
  Cover: Germany, Netherlands, France, UK, USA
  🚫 Do NOT use: the origin country or any nearby country

System-Level OPSEC for Attribution Hiding

powershell
# BEFORE ANY OPERATION, run these checks:

# 1. Check system timezone (MUST NOT be the origin timezone)
tzutil /g
# If it is the origin timezone → tzutil /s "<Cover Country Standard Time>"

# 2. Check browser languages (MUST NOT have the origin language)
# Chrome: chrome://settings/languages → only cover country languages
# Remove all origin-related languages

# 3. Check system installed languages
Get-WinUserLanguageList
# If any origin language → remove it
# $lang = Get-WinUserLanguageList | Where-Object LanguageTag -eq "<origin-lang-code>"
# $lang | ForEach-Object { $_.Remove() }

# 4. Check system locale
Get-Culture  # Must show cover country, not the origin

# 5. VPN: verify no connection originates from the origin country
(Invoke-WebRequest -Uri "https://ipinfo.io/json" -UseBasicParsing).Content
# Check: country, timezone, language fields

# 6. Browser fingerprint: test at https://browserleaks.com or https://amiunique.org
# Check: WebRTC leak, timezone, language, fonts, canvas

Digital Trail Consistency (The Hardest Part)

The most common attribution failure is SINGLE SIGNAL INCONSISTENCY:

yaml
You do everything right EXCEPT:
  ❌ Your GitHub commit timestamp shows origin business hours
     but your VPN says you're in the US (it's the middle of the night there)
     → Defenders: "Commit at that hour? Unusual, but maybe.
        Let's check other signals..."

  ❌ Your phishing page is in perfect English
     but WHOIS domain registered with an origin-country phone number
     → Defenders: "English page + origin phone = attribution done"

  ❌ You use US VPN, US names, US email
     but browser Accept-Language shows the origin language as primary
     → Defenders: "US VPN but origin language = just a proxy user"

Every signal must tell the same story. One mismatch = attribution.


DIGITAL HYGIENE

Browser Isolation:

  • Dedicated browser profile for EACH target
  • No extensions (or only essential ones like proxy switcher)
  • No saved passwords
  • Private/incognito mode always
  • Clear everything between sessions: cache, cookies, localStorage, history

Network Isolation:

[Your Machine]
     ↓
[VPN1 - entry] (residential proxy, act as anonymizing layer)
     ↓
[VPN2 - exit] (in target's region)
     ↓
[Optional: Tor] (only if speed isn't critical)
     ↓
[Target]

Account/Identity Compartmentalization:

PurposeEmailPaymentPhoneIdentity
Domain regburnermail1@MoneroBurner SIMFake name
VPS/VPNburnermail2@MoneroBurner SIMFake name
Social mediaburnermail3@N/ABurnerFake persona
Testingburnermail4@N/AN/AFake persona
Personalreal@Real cardRealREAL

NEVER Cross-Contaminate:

  • ❌ Same email for domain purchase and social media
  • ❌ Same payment method across any two ops accounts
  • ❌ Log into personal accounts from ops environment
  • ❌ Log into ops accounts from personal environment

TOOL HYGIENE

Curl Configuration:

Don't use default curl. It's fingerprinted by User-Agent and TLS fingerprint.

powershell
# curl - minimal fingerprint
curl.exe --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/126.0.0.0" --compressed -s

# Add TLS parameters to match browser
curl.exe --tlsv1.2 --tls-max 1.2 --ciphers "ECDHE-RSA-AES128-GCM-SHA256"

Tool Modifications:

  • Nmap: Use -T2 (slow), random decoys, spoof MAC
  • Gobuster/ffuf: Add random delays, rotate UAs, throttle requests
  • sqlmap: Never default UA, use --random-agent, --delay 2
  • Hydra/medusa: Never default, throttle aggressively, randomize timing

Default Tool FPs to AVOID:

ToolDefault FPWhat to Change
curlcurl/8.x.xChange User-Agent
sqlmapsqlmap/#.#--random-agent, --mobile
nmapNmap, T4-T2, --spoof-mac, -D RND:10
gobustergobuster/3.xChange UA with proxy
hydraUser-Agent: hydra-m option, change UA in source
pythonpython-requests/2.xAlways set custom UA

COMMUNICATIONS SECURITY

Never Discuss Operations On:

  • ❌ Personal phone or messaging apps
  • ❌ Your real Signal/Telegram with real identity
  • ❌ Slack, Discord, Teams (corporate environments)
  • ❌ Email (even encrypted email metadata is visible)
  • ❌ SMS (completely insecure)

Use For Op Comm:

  • ✅ Burner Signal (burner phone number)
  • ✅ Session (no phone number required, ephemeral)
  • ✅ SimpleX (no identifiers at all)
  • ✅ Matrix (self-hosted, encrypted)
  • ✅ End-to-end encrypted + ephemeral + no metadata

IF COMPROMISED: BURN PROTOCOL

Signs You're Being Hunted:

  • Target goes silent (no interaction)
  • Your infrastructure becomes unreachable
  • Your domains taken offline without notice
  • Unusual connection attempts to your boxes
  • Your C2 returns unusual responses
  • Certificates revoked

Immediate Actions:

  1. CUT ALL LINES - kill all C2 connections NOW
  2. SHUTDOWN all infrastructure - servers, redirectors, domains
  3. DESTROY logs - local logs, cloud logs, infrastructure logs
  4. BURN accounts - all burner emails, domain regs, VPS accounts
  5. ISOLATE op machine - don't connect to anything
  6. ANALYZE how - trace back what exposed you
  7. WAIT 3+ months before any new operations
  8. NEVER reuse any infrastructure, accounts, or patterns

If Physical Raid Imminent:

  • Full disk encryption (boot password, not auto-login)
  • Remote wipe script ready
  • Separate boot partitions (clean OS for plausible deniability)
  • Op data never on personal devices
  • Op comms on separate devices entirely

PERSONAL / OP SEPARATION (HARD RULES)

Absolutely Separate Hardware:

  • Personal computer
  • Operational computer (clean OS, no personal accounts)

If same machine (virtual isolation):

  • Dedicated VM for ops (not the host OS)
  • VM has its own VPN (independent from host)
  • No network bridging between host and VM
  • VM DNS goes through VPN, not host
  • Host has zero ops artifacts

Absolutely Separate:

Personal Phone         ≠        Op Phone
Real ID Burner SIM only
Home Address Vacant address/mail drop
Real Email Burner emails only
Real Name Code name only
Physical location VPN exit to target's region
Bank/Crypto Monero only
Social media Siloed fake persona per target

SESSION TRACKING LOG

Before starting ANY operation:

Cover Country: _________________  (this is who you appear to be)
Target: _________________
Date:   _________________
VPN Exit IP: _________________
VPN Exit Country: _________________
Timezone Set: _________________
Language Set: _________________
User Agent Used: _________________
Browser Fingerprint Verified: _________________
Tool Set: _________________
Op Account Used: _________________
Purpose: _________________
Burn After: _________________

Log this in an encrypted file, NOT in your personal notes or cloud.

Frequently asked questions

What does the Opsec AI skill do?

Use as pre-validation layer BEFORE any other skill. Activates when user says any security/attack/scan command. Ensures VPN is connected, user agents rotate, fingerprint is clean, and operational environment is isolated from personal identity. This runs FIRST before any other skill executes.

Why use Opsec on TypingMind?

Because you install it once and use it with any model. Opsec is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Opsec in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mrhlaingbwardev/agentic-hacking-skills/tree/main/skills/opsec. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Opsec?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Opsec?

As many as you like. As long as a model supports skills, you can use Opsec with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Opsec AI skill free?

It is published on GitHub by mrhlaingbwardev. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇