Building Canaries with ELK & ElastAlert
Where
Talks
ShmooCon 2024
Duration
13 min
Explains how canary tokens feed an ELK stack and ElastAlert 2 to raise near real-time alerts on phishing activity.
Summary
The talk introduces canary tokens, also called honey tokens, which are decoys such as a fake admin account, a fake payroll spreadsheet, or fake API keys that nobody should ever use. The speakers, systems engineers at a higher-education institution, explain why they built theirs on an existing Elasticsearch, Logstash and Kibana stack, with ElastAlert 2 running queries and sending alerts. They stress that alerting must happen in near real time rather than in a next-morning report.
Their canaries sat on internet-facing sites, including scripts embedded in login pages that attackers were cloning. Tuning Lucene queries was still needed, because translation services, search engines, test servers and accessibility tools caused harmless false positives. The most valuable results were phishing and credential harvesting campaigns, which often launched around holidays. Attackers frequently tested their kits from one IP address first, letting the team block those domains and filter email before delivery.
Attackers showed mixed sophistication: some deobfuscated code, some cloned sites lazily, and others stitched pages together from several organizations. The speakers encourage creative canary placement, while warning analysts not to poke around live phishing backends they discover, since that can be risky. The takeaway is that inexpensive decoys wired into existing logging can shorten response time considerably.
Related talks
Talks·42 min
Petrus Vasenius
Shows how decoy data planted in cloud analytics stores can expose insiders and stolen sessions through monitored alerts.
Talks·26 min
Russell Handorf
Shows how to plan a deception operation, using a rural trespasser case study to illustrate a practical framework.
PasswordsCon·19 min
Gautier Bugeon
Shows how a decoy login portal can expose attackers reusing stolen credentials so defenders can reset them early.


