Deception Technology

Advanced DefenseFree Lesson

Advertisement

Deception Technology

Honeypots, honeynets, decoys, and deception-based detection.

Overview

Deception technology lures attackers into traps.

Deception Types

TypeDescription
HoneypotFake system/service
HoneynetNetwork of honeypots
HoneyfileDecoy files
HoneytokenFake credentials

Honeypot Implementation

# Simple SSH honeypot
from twisted.conch import ssh, avatar
from twisted.conch.ssh import factory

class HoneypotSSH(avatar.ConchUser):
    def __init__(self, username):
        avatar.ConchUser.__init__(self)
        self.username = username
        
    def login(self, credentials):
        # Log credentials
        log_attempt(self.username, credentials.password)
        
        # Fake response
        return {"success": True, "shell": FakeShell()}

Honeynet Architecture

Architecture Diagram
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│           Honeynet                  │
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
│  Web Server  │  Database  │  Mail   │
│  (honeypot)  │ (honeypot) │(honeypot)│
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
│           Monitoring                │
│  (IDS, logging, alerting)           │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

Honeytokens

# Create honeytoken
def create_honeytoken():
    return {
        "username": "admin_backup",
        "password": generate_weak_password(),
        "email": "admin_backup@example.com"
    }

# Monitor for use
def monitor_honeytoken(token):
    if check_login_attempt(token.username):
        alert("Honeypot triggered!")
        capture_attacker_info()

Detection Value

MetricImpact
Early detectionBefore real assets
High fidelityLow false positives
Attacker insightTTPs discovery
Dwell timeImmediate detection

Best Practices

  1. Realistic decoys — Match environment
  2. Strategic placement — High-value locations
  3. Comprehensive monitoring — All interactions
  4. Quick response — Immediate alerting
  5. Regular updates — Keep decoys fresh

Practice

Deploy a honeypot network to detect unauthorized access.

Advertisement

Need Expert Cybersecurity Help?

Get personalized security training or professional consulting.

Advertisement