Tutorial: grade HoneyAgents with UHBS¶
Status: Informative · evaluation proof
Target: https://github.com/mrwadams/honeyagents · commit 43d4114fe8b235c1646571f7bc50bacc7a32533a
Protocol graded: SSH :2222 (Cowrie honeypot service). Telnet is mapped in compose but not enabled by stock Cowrie defaults.
0. Prerequisites¶
git clone https://github.com/mziqudhd92/uhbs-standard.git
cd uhbs-standard
pip install -c constraints.txt -e ".[dev,lab]"
docker pull cowrie/cowrie:latest
docker network create uhbs-lab 2>/dev/null || true
1. Clone source (Module F)¶
mkdir -p .local/labs
git clone https://github.com/mrwadams/honeyagents.git .local/labs/honeyagents
cd .local/labs/honeyagents
git checkout 43d4114fe8b235c1646571f7bc50bacc7a32533a
2. Start the honeypot service only¶
Full docker-compose up also builds nginx, Apache, attacker, and AutoGen (needs OPENAI_API_KEY). For UHBS decoy grading, run the same Cowrie image the compose file uses:
docker rm -f honeyagents-honeypot 2>/dev/null || true
docker run -d --name honeyagents-honeypot --network uhbs-lab \
-p 127.0.0.1:13222:2222 \
-p 127.0.0.1:13223:2223 \
cowrie/cowrie:latest
until docker logs honeyagents-honeypot 2>&1 | grep -q 'Ready to accept SSH'; do sleep 1; done
# Credentials: root / admin (Cowrie built-in defaults)
3. SSH quick + full¶
mkdir -p docs/conformance/reports/honeyagents/ssh/{quick,full}
# Local inventory: .local/honeyagents-inventory.yaml (127.0.0.1:13222)
UHBS_QUICK=1 UHBS_AIRGAP_ATTESTED=1 \
uhbs-lab \
--inventory .local/honeyagents-inventory.yaml \
--target honeyagents-ssh \
--tps docs/conformance/labs/honeyagents/low_interaction_ssh_quick.yaml \
--protocol ssh \
--phases profile,static,sandbox,dynamic,score --modules A,B,C,D,E,F \
--quick --skip-sast-tools --concurrency 10 --requests 50 \
--out docs/conformance/reports/honeyagents/ssh/quick \
--environment "Quick Docker lab: honeyagents-ssh"
UHBS_AIRGAP_ATTESTED=1 \
uhbs-lab \
--inventory .local/honeyagents-inventory.yaml \
--target honeyagents-ssh \
--tps docs/conformance/labs/honeyagents/low_interaction_ssh_full.yaml \
--protocol ssh \
--phases profile,static,sandbox,dynamic,score --modules A,B,C,D,E,F \
--concurrency 25 --requests 200 \
--out docs/conformance/reports/honeyagents/ssh/full \
--environment "Full Docker lab: honeyagents-ssh"