Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

SOC Home Lab: C2 Detection & Credential Extraction Monitoring


Introduction

This lab draws its inspiration from Eric Capuano’s original blog post which is not now unavailable, but you can still follow the concepts by watching Gerald Auger’s detailed video walkthrough on his YouTube channel. The link to the video will be referenced below. This lab simulates a blue team exercise focused on detecting Command & Control (C2) activity and monitoring suspicious process behavior (e.g., LSASS memory dumping). The objectives include:

  • Deploying a C2 framework (Sliver) to emulate adversary tactics.
  • Configuring LimaCharlie for real-time detection of credential extraction attempts.
  • Analyzing alerts and refining detection rules.

Lab Setup

Virtual Machines

  • Attacker VM (Ubuntu): 10.0.2.3
    • Tools: Sliver C2 server.
  • Target VM (Windows): 10.0.2.5
    • Tools: LimaCharlie agent, simulated user activity.

Network Configuration

  • Both VMs are on the same subnet (10.0.2.0/24) with bidirectional communication.

C2 Infrastructure with Sliver

  1. Start the Sliver Server

    image

  2. Generate and Deploy Implant

    image 1

  3. Start HTTP Listener

    image 2


Monitoring with LimaCharlie

  1. Deploy LimaCharlie Agent
    • Install the agent on the Windows VM and link it to your LimaCharlie dashboard.
  2. Create Detection Rule
    • Rule logic: Trigger an alert if lsass.exe is accessed or dumped.

      image 3


Executing the Attack

  1. Run the Implant

    • Execute the Sliver payload on the Windows VM from the C2 server.

      image 4

  2. Dump LSASS Memory

    image 5

    • LimaCharlie generates an alert:

    image 6


Analysis & Reporting

  1. Review Alerts
    • Investigate the LimaCharlie dashboard for process details (command line, memory usage, hash).

      image 7


Conclusion

We saw how an attacker might use a tool like Sliver to gain control of a machine and why it’s so important to monitor critical system processes. By setting up detection rules in SIEM tools like LimaCharlie, we learned how to catch suspicious activities early. The exercise emphasizes that cybersecurity isn’t just about preventing attacks, it’s also about being ready to detect and respond to them quickly.

Reference:

Gerald Auger Walkthrough Video: https://youtu.be/oOzihldLz7U

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors