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

LibTech-Auditing-Cheatsheet

> 编程语言
Open source

Meta The canonical, 'up-to-date' version is located at https://github.com/iSECPartners/LibTech-Auditing-Cheatsheet You are encouraged to im…

198 stars0 likes1 views
WebsiteGitHub

About

Meta The canonical, 'up-to-date' version is located at https://github.com/iSECPartners/LibTech-Auditing-Cheatsheet You are encouraged to im…

Meta

The canonical, 'up-to-date' version is located at https://github.com/iSECPartners/LibTech-Auditing-Cheatsheet You are encouraged to improve the document and submit pull requests.

The README.md document may be converted to html using ./build_html.py The HTML version contains minor formatting changes not possible in markdown. The Markdown version should be edited and is considered authoritative.

The Github-styled markdown version of the document is generally sufficient, although formatting in Appendix A is improved in the HTML version.

Introduction

This list is intended to be a list of additional or more technical things to look for when auditing extremely high value applications. The applications may involve operational security for involved actors (such as law enforcement research), extremely valuable transactions (such as a Stock Trading Application), societal issues that could open users to physical harassment (such as a Gay Dating Application), or technologies designed to be used by journalists operating inside repressive countries.

It is an advanced list - meaning entry level issues such as application logic bypasses, common web vulnerabilities such as XSS and SQLi, or lower level vulnerabilities such as memory corruption are explicitly not covered. It is assumed that the reader is aware of these and similar vulnerabilities and is well trained in their search, exploitation, and remediation.

A good example of the type of analysis to strive for can be shown in Jacob Appelbaum's analysis of UltraSurf: https://media.torproject.org/misc/2012-04-16-ultrasurf-analysis.pdf

The Stuff

Documentation

  • Threat Model. Has the project documented what they intend to protect themselves from, and what they do not intend to protect themselves from?
    • If not, they probably haven't given much thought to what attacks may be possible to defend against and what attacks are not.
    • For example: Tor explicitly does not defend against end-to-end correlation: if an attacker can monitor a user (e.g. a user in the US) and the site they are connecting to (e.g. a site hosted at Amazon EC2 East Coast) it's assumed it's game over, and the attacker can de-anonymize the user. No complicated defenses will be taken. For this reason, tagging attacks are also not defended against.
      • Some other example Threat Models:
        • https://svn.torproject.org/svn/projects/design-paper/tor-design.html#subsec:threat-model
        • https://gitweb.torproject.org/obfsproxy.git/blob/HEAD:/doc/obfs2/threat-model.txt
        • https://www.torproject.org/projects/torbrowser/design/
    • Some common threat model questions:
      • Do you intend to protect against forensic analysis of a disk to determine what activities a user has participated in using the software?
      • Do you intend to protect against forensic analysis of a disk to determine if a user had installed the software (and subsequently uninstalled it)?
      • Do you intend to disguise the use of the software to an adversary who can monitor the user's network connection?
        • If they say "Yes" they are almost certainly unable to accomplish this, and you should be able to find a few ways to break this.
      • Do you intend to disguise the activities of a user using the software from an adversary who can monitor the user's network connection?
  • Does the application have a Protocol Specification?
    • If an application uses a custom protocol, it should be documented to the level that you would feel comfortable producing an interoperating client from only the specification with no reference to the code. Code is not specification. Code comments are not specification.
    • Any deviation from the protocol specification (even if superficial or without security effect) should be noted
    • Anytime the application accepts data that deviates from the specification should probably be noted.
    • Anytime the application does not accept data valid according to the specification should also probably be noted.
      • These last two are why we have HTML/SSL problems on the Internet:
      • Web browsers will happily display documents even if they have no opening or tags, intermixed tags, and dangling tags. Incredible complexity was introduced in these loose parsers; upgrading them is fraught with furious peril, holding back security fixes.
      • In SSL's case, it states if you receive a version number greater than what you can handle, or an extension you don't recognize, you should be able to handle it gracefully. But many products don't, and thus web browsers perform a fallback to a lesser protocol version, and no extensions to accommodate these products. This allows an attacker to silently downgrade your SSL protocol version!
      • Thus, the application should be able to gracefully handle any way data can be formatted according to the spec; and that it generally should not loosely accept incorrectly formatted data, especially when it is the first or major implementation of the protocol.
  • TODOs, FIXMEs, HACKs, or XXXs
    • If code contains comments to these effects, the code should be investigated thoroughly (duh) and there should probably be a corresponding issue in the project's bugtracker.
  • Is project documentation kept up to date?
  • Does the software provide extremely simple, easy-to-understand instructions for use, discouraging bad practices and performing necessary verification checks?
    • Example: https://www.torproject.org/download/download-easy.html.en#warning
  • Are risks documented to users?
    • Does the software take efforts to explain what the product does and doesn't provide, and under what environments (e.g. corporate) the software grants no protection?
      • Examples: Chrome Incognito mode, Tor
  • Does the project conduct usability studies about how users actually use the software and whether they put themselves at risk by doing so?

Service Administration

  • Do the administrators of the system enjoy a privileged position in relation to other users of the product or protocol?
    • Are they able to perform additional traffic analysis on users?
    • Do the protocols break down when a member of the protocol is also the service administrator?
    • This position may be enjoyed by attackers who can monitor or subvert the administrative network (internally or externally).
  • What systems are in place to restrict privileged individuals...
    • From fully subverting the system?
    • From gaining access to user account information?
    • From gaining access to web server logs?
  • With what ease can the system deliver backdoored or malicious code to users?
    • Does the application interpret code and execute it at runtime?
    • Does the application run on the provider's servers?
    • Does the application auto-update?
  • What technical and policy-based access control mechanisms are in place to segregate differently-privileged users?
  • How is the service hosted, and what additional privileged users are granted access by the choice of hosting?
    • What do they gain access to and what are they restricted from?
  • What is the application 'stack' of the service, including Operating System, language, frameworks, libraries, and modules? Are they publically disclosed? How popular/secure are they?
  • What additional services are running on machines that see privileged user information?
  • In what jurisdiction is the service hosted?

Network Fingerprinting

  • Any permanent settings unique to a client (or customizable) that persist may be used to track users across networks.
    • Even in the case where a setting does not uniquely identify a user, it will partition the user into a subset of all users, reducing all users' anonymity.
    • Some examples to illustrate this topic:
      • A user may enable the Do Not Track header. The user visits a website, and the attacker observes they have set the header. When attempting to track this user in the future, they can assume the user will still have the header set.
      • A banner case: IPv6 addresses. In the initial design, the last /64 of your IP address was calculated from your MAC address. MACs are globally unique, and the odds of anyone else having the same /64 were low. Thus, even moving to the other side of the planet and installing a new operating system would allow your laptop to be correlated by a website operator with IP address logs.
      • A client chooses three random servers to talk to for the lifespan of an installation (or a set period of time). These three random servers can identify the client potentially uniquely (at the very least to a subset of users) because an adversary who can observe a client on different networks will see connections to servers A, F, and X only from this (or a subset of) client(s). This is easy for state-level adversaries.
      • SSL Session Resumption may even qualify depending on the threat model. If a server gives a user a ticket on IP address X, and tracks that ticket, and then sees it come from IP address Y - it knows these two IPs belong to the same client.
  • Depending on the application's threat model, the application may try to avoid a network operator being able to fingerprint the use of the application
    • This is extremely difficult if not impossible. Usually it's just getting to a 'best case' situation. If you're really interested or need to go deep into this, you can read about Tor bridges and how Tor has tried to avoid censorship in countries such as China, Ethiopia and Iran.
      • http://www.cs.kau.se/philwint/pdf/usenix-login-2012.pdf
      • https://trac.torproject.org/projects/tor/ticket/7141
      • https://trac.torproject.org/projects/tor/ticket/6045
      • https://gitweb.torproject.org/tor.git/commit/5ed73e3807d90dd0a3
      • In General: https://censorshipwiki.torproject.org
    • Does the application run on non-standard ports or talk to unchanging IP addresses? Are the central communication IPs known and/or enumerable? If so, a network operator can hardcode these IPs and blacklist them.
    • Does the application communicate anything in plaintext, or make plaintext queries about the application?
      • If an application makes a SSL connection, but sends a server certificate with a common name of "Super Secret Anonymity Service" - a network operator can filter on that (plaintext) SSL certificate.
      • If the service makes a DNS request to supersecretanonymityservice.com - even if the rest of the protocol is unfingerprintable, that (plaintext) DNS request gave it away.
      • If the service smuggles a SSL certificate in somehow, but the application makes an OCSP request supersecretanonymityservice.com - that OCSP request is visible in plaintext.
    • Does the application use a nonstandard, unique, or uncommon cryptographic handshake and/or protocol?
      • Unfortunately, any new protocol developed that is unlike anything else would be fingerprintable. Even if it was fully random data with no structure - that itself is rare and fingerprintable.
      • The best case scenario is to disguise a protocol as a normal Web Browser using SSL, perhaps SSH, streaming flash video, Skype, or something similar.
      • This is difficult, but is being actively researched. See:
        • https://www.torproject.org/projects/obfsproxy
        • http://cacr.uwaterloo.ca/techreports/2012/cacr2012-08.pdf
    • Does the application take the standard approach of just using SSL? Is there anything unique about the SSL handshake that can be identified?
      • Unique and Constant set of Ciphersuites and/or extensions?
      • SSL Certificate Hostname
      • Performing a renegotiation immediately after a connection (Tor does this).
      • See also: the four Tor-related links above
  • Are the version or features of the application distinguishable to an adversary who can observe network traffic

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Python

No comments yet. Be the first to share.

> Details

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

> Related tools

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