CaptchaSAM: Segment Anything in Text-based Captchas
While text-based captchas, designed to distinguish between human users and bots, have encountered numerous attack methods, they remain a prevalent security mechanism employed by various websites. Some deep learning-based approaches can recognize captcha character sequences end-to-end; however, the labor-intensive and time-consuming labeling process severely restricts their feasibility. In this study, we introduce CaptchaSAM, to segment anything in text-based captchas. Our insight lies in the fact that identifying individual characters is a simpler task compared to recognizing character sequences, leading to a substantial reduction in labeling dependency. To accomplish this, we utilize the Segment Anything Model (SAM) for character-level semi-automatic annotation. Subsequently, we leverage the annotated data to train a semantic segmentation model. Our experiments with real-world captcha systems demonstrate that CaptchaSAM significantly outperforms state-of-the-art methods with just a few labeled captchas. We anticipate that our research will encourage security experts to reconsider the design and deployment of text-based captchas. The source code is accessible at https://github.com/SJTU-dxw/CaptchaSAM.
Authors
- Yijun Wang (ORCID: https://orcid.org/0000-0002-4613-0340)
- Ziyi Zhou (ORCID: https://orcid.org/0000-0002-9775-3839)
- Weiqi Bai (ORCID: https://orcid.org/0000-0002-9613-7460)
- Xianwen Deng (ORCID: https://orcid.org/0000-0002-6611-5295)
- Ruijie Zhao (ORCID: https://orcid.org/0000-0001-7090-6789)
Institutions
- Shanghai Jiao Tong University (CN)
- Southeast University (CN)
Publication Details
- Published
- 2024-12-17
- DOI
- https://doi.org/10.1109/trustcom63139.2024.00153
- Citations
- 1
- Primary Topic
- User Authentication and Security Systems
- Type
- article
- Field-Weighted Citation Impact
- 0.78