Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

big-list-of-naughty-strings

> 编程语言
Open source

The Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data.

47.7K stars0 likes2 views
WebsiteGitHub

About

The Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data.

Big List of Naughty Strings

The Big List of Naughty Strings is an evolving list of strings which have a high probability of causing issues when used as user-input data. This is intended for use in helping both automated and manual QA testing; useful for whenever your QA engineer walks into a bar.

Why Test Naughty Strings?

Even multi-billion dollar companies with huge amounts of automated testing can't find every bad input. For example, look at what happens when you try to Tweet a zero-width space (U+200B) on Twitter:

Although this is not a malicious error, and typical users aren't Tweeting weird unicode, an "internal server error" for unexpected input is never a positive experience for the user, and may in fact be a symptom of deeper string-validation issues. The Big List of Naughty Strings is intended to help reveal such issues.

Usage

blns.txt consists of newline-delimited strings and comments which are preceded with #. The comments divide the strings into sections for easy manual reading and copy/pasting into input forms. For those who want to access the strings programmatically, a blns.json file is provided containing an array with all the comments stripped out (the scripts folder contains a Python script used to generate the blns.json).

Contributions

Feel free to send a pull request to add more strings, or additional sections. However, please do not send pull requests with very-long strings (255+ characters), as that makes the list much more difficult to view.

Likewise, please do not send pull requests which compromise manual usability of the file. This includes the EICAR test string, which can cause the file to be flagged by antivirus scanners, and files which alter the encoding of blns.txt. Also, do not send a null character (U+0000) string, as it changes the file format on GitHub to binary and renders it unreadable in pull requests. Finally, when adding or removing a string please update all files when you perform a pull request.

Disclaimer

The Big List of Naughty Strings is intended to be used for software you own and manage. Some of the Naughty Strings can indicate security vulnerabilities, and as a result using such strings with third-party software may be a crime. The maintainer is not responsible for any negative actions that result from the use of the list.

Additionally, the Big List of Naughty Strings is not a fully-comprehensive substitute for formal security/penetration testing for your service.

Library / Packages

Various implementations of the Big List of Naughty Strings have made it to various package managers. Those are maintained by outside parties, but can be found here:

Library Link
Node https://www.npmjs.com/package/blns
Node https://www.npmjs.com/package/big-list-of-naughty-strings
.NET https://github.com/SimonCropp/NaughtyStrings
PHP https://github.com/mattsparks/blns-php
C++ https://github.com/eliabieri/blnscpp

Please open a PR to list others.

Maintainer/Creator

Max Woolf (@minimaxir)

Social Media Discussions

  • June 10, 2015 [Hacker News]: Show HN: Big List of Naughty Strings for testing user-input data
  • August 17, 2015 [Reddit]: Big list of naughty strings.
  • February 9, 2016 [Reddit]: Big List of Naughty Strings
  • January 15, 2017 [Hacker News]: Naughty Strings: A list of strings likely to cause issues as user-input data
  • January 16, 2017 [Reddit]: Naughty Strings: A list of strings likely to cause issues as user-input data
  • November 16, 2018 [Hacker News]: Big List of Naughty Strings
  • November 16, 2018 [Reddit]: Naughty Strings - A list of strings which have a high probability of causing issues when used as user-input data

License

MIT

Issues· 108 open

View all issuesOpen on GitHub
  • #265

    Additional scunthorpes

    Updated Apr 6, 2026
  • #267

    Add categories in the `.json` file

    Updated Apr 6, 2026
  • #238

    Add rm -rf /

    Updated Oct 23, 2025
  • #268

    WorstFit

    Updated Jan 26, 2025
  • #266

    beep

    Updated Aug 4, 2024
  • #264

    Add strings for log4shell (log4j vulnerability)

    Updated Jul 26, 2024
  • #263

    Is this an appropriate place for place names or other names that might cause issues?

    Updated Jun 12, 2024
  • #250

    Accident

    Updated Feb 8, 2024
  • #260

    Add Abugidas and CJK/Emoji variation selectors.

    Updated Nov 23, 2023
  • #174

    Any interest in having this be a library?

    Updated Nov 15, 2023

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言