---
title: "Proactive Measures Against Password Breaches and Cookie Hijacking"
description: "Slack automatically invalidates user credentials that show up in threat intelligence feeds from breaches, dark web forums, botnets and infostealer malware."
url: "https://swe.quest/articles/proactive-measures-against-password-breaches-and-cookie-hijacking-c53a75efe0f4bdb5"
canonical: "https://slack.engineering/proactive-measures-against-password-breaches-and-cookie-hijacking/"
source: "Slack Engineering"
published: "2024-06-28"
difficulty: "easy"
kind: "Case study"
reading_minutes: 6
tags: ["identity-auth","threat-detection","security"]
---

# Proactive Measures Against Password Breaches and Cookie Hijacking

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2024-06-28, 6 min read, Case study. Original: [https://slack.engineering/proactive-measures-against-password-breaches-and-cookie-hijacking/](https://slack.engineering/proactive-measures-against-password-breaches-and-cookie-hijacking/)

## Summary

Slack automatically invalidates user credentials that show up in threat intelligence feeds from breaches, dark web forums, botnets and infostealer malware. Leaked passwords are matched against Slack's salted-hash store by salting and hashing each candidate in parallel batches on a job queue. On a match the password is reset and blocked from reuse, and the candidate data is then discarded. Hijacked session cookies are also invalidated, but timed to fall outside the user's local weekday working hours so no one is logged out mid-conversation, with email notification and Enterprise audit log events. This builds on Slack's regex-based scanning, in place since 2016, that revokes tokens and webhooks leaked in public code.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Threat detection](https://swe.quest/tags/threat-detection.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)

## Prerequisites

- password hashing and salting
- session cookies

## Keywords

Slack, credential stuffing, infostealer malware, Slack Audit Logs

## Related posts

- [Catching Compromised Cookies](https://swe.quest/articles/catching-compromised-cookies-83776372ceccd1c9.md): Slack Engineering · 2024-06-24 · Medium · 10 min read · Identity & auth, Threat detection, Application security, System design
  Slack detects stolen session cookies by spotting session forking: a last-access timestamp is stored in both the cookie and the database, and a mismatch on a later request means more than one copy of the cookie is in use.
- [Slack Audit Logs and Anomalies](https://swe.quest/articles/slack-audit-logs-and-anomalies-9433e81574c3d83d.md): Slack Engineering · 2024-12-09 · Medium · 8 min read · Threat detection, Observability, Security
  Slack Enterprise Grid audit logs record platform actions and include anomaly events that flag unusual behaviour such as new user agents, excessive downloads, unexpected scraping, IP address changes and session fingerprint mismatches.
- [Protecting user data through source code analysis at scale](https://swe.quest/articles/protecting-user-data-through-source-code-analysis-at-scale-357585a0d96f83c8.md): Meta Engineering · 2025-02-18 · Medium · 4 min read · Static analysis, Threat detection, Application security, Python
  Meta's Anti-Scraping team encodes known scraping attack vectors as taint-analysis rules in its in-house static analyzers, Zoncolan for Hack and Pysa for Python, so potential vectors are flagged before code ships.
- [How Meta is improving password security and preserving privacy](https://swe.quest/articles/how-meta-is-improving-password-security-and-preserving-privacy-daa9a84182d0e924.md): Meta Engineering · 2023-08-08 · Medium · 6 min read · Cryptography, Privacy, Identity & auth, Security
  Meta's Private Data Lookup (PDL) checks new passwords against breached-password datasets using Private Set Intersection, so the server learns neither the attempted password nor whether it matched.
- [Finding leaked passwords with AI: How we built Copilot secret scanning](https://swe.quest/articles/finding-leaked-passwords-with-ai-how-we-built-copilot-secret-scanning-26ede51a550b66b2.md): GitHub Engineering · 2025-03-04 · Medium · 8 min read · LLMs, Evaluation, Security, Capacity planning
  GitHub replaced regex-based detection of generic passwords with an LLM prompt that judges candidate secrets from their file context.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
