English
简体中文繁體中文EnglishРусскийفارسی

HomeColumnSecurity

The cost of HTTPS decryption modules

FlClash's MITM modules can rewrite pages and APIs, but once on, FlClash can read cookies and passwords sent to decrypted sites. How the certificate is installed, the limits on Android without root, which module settings to be wary of, and how to take the certificate back.

Checked on

A letter sealed with wax: HTTPS is that seal, and decryption means breaking and resealing it
A letter sealed with wax: HTTPS is that seal, and decryption means breaking and resealing it Post of the Netherlands, Public domain

People coming from Surge or Quantumult X miss "modules" most: ad removal, API rewrites, map local. FlClash's RS test build added MITM modules that read Surge modules, Loon plugins, Quantumult X snippets and Stash overrides. Powerful, but the cost is real, and FlClash itself says so when you turn it on.

Many people think "it is my own computer, so decrypting does not matter". The question is where the decrypted data goes: modules can contain scripts that read decrypted requests and responses, and capture can be exported as a HAR file with complete cookies in it. You are trusting not only FlClash but the author of every module you install.

FlClash's own warning

When you enable MITM, FlClash warns: FlClash will be able to read everything sent to the decrypted hosts, cookies and passwords included; turn it on only for hosts you need to rewrite.

That is no exaggeration. The point of HTTPS is that only you and the site can see the content. Decryption works by letting FlClash impersonate the site: your device trusts a root certificate FlClash generated, so FlClash can open every request to the listed hosts, read and change it, then encrypt it again.

A letter opener: decryption opens the letter, reads it and seals it again
A letter opener: decryption opens the letter, reads it and seals it again Evan-Amos, Public domain

Where the certificate goes

PlatformHow it is trustedLimits
Android (no root)Installed as a user certificateOnly apps that trust user certificates are decrypted, mostly browsers
Android (root)Added to system certificates as a Magisk, KernelSU or APatch module "FlClash MITM CA"Takes effect after reboot; without a module that keeps it, reinstall after each reboot
DesktopExport the certificate and trust it in the systemChrome and Firefox keep their own stores and may need certutil; Flatpak browsers need a manual import

On Android without root there is an easy trap: other apps that reach the listed hosts simply fail, because they do not trust user certificates. FlClash's advice is not to list those apps' hosts.

Three kinds of module settings to read carefully

  1. The hostname list: which sites get decrypted. The longer it is, the more FlClash sees. Banks, payments and email should not be on it; exclude them where needed (a - before the host name).
  2. Skipping certificate checks: some modules make FlClash stop checking certain hosts' server certificates. FlClash warns before enabling it that a connection impersonating those servers would go unnoticed. Be especially careful with this one.
  3. Overriding network settings: some modules change your DNS and other network settings while on; they are listed before you enable them.

If a module's address changes, or a restored backup needs consent again, FlClash turns the module off until you confirm. This guards against someone quietly swapping a module's contents.

An embossed seal on a certificate: trusting a root certificate hands it the seal
An embossed seal on a certificate: trusting a root certificate hands it the seal (photographie MHM55), CC BY-SA 3.0

Taking it back when you are done

  • First turn MITM off in FlClash.
  • Android user certificate: the system does not let apps remove it; delete it yourself under Settings → Security → Encryption & credentials → Trusted credentials → User.
  • Android root certificate: remove the "FlClash MITM CA" module in your root manager.
  • Desktop: delete the root certificate in the system's certificate manager.

Why the root certificate matters so much

Browsers decide whether a site is genuine through a certificate chain: the site's certificate is issued by an authority whose root certificate ships with the system. Trusting FlClash's root certificate by hand tells the system "this is a trusted issuer too". From then on, any certificate FlClash signs for any site is accepted.

So guard the root certificate's private key. FlClash's settings can regenerate the certificate to replace the old one; afterwards delete the old one from the system, and on Android FlClash reminds you to remove it by hand under Trusted credentials → User.

When it is really needed

NeedRequires decryption
Routing by domain, dropping ad domainsNo, ordinary rules can do it
Rewriting an API's responseYes
Mapping an address to a local fileYes
Seeing what requests an app sendsYes, with capture
Just getting throughNo

Many "ad-blocking modules" work mostly by blocking ad domains, and that part can be done with FlClash's ordinary rules (REJECT) without decryption.

Capture and HAR files

With capture on, FlClash can export HTTP requests as a HAR file for troubleshooting. A HAR file holds complete request headers and cookies, effectively a copy of your login credentials. Do not post it in a group chat for help; if you must share it, strip the sensitive fields first.

Without MITM, can FlClash see my passwords?

No. An ordinary proxy only forwards encrypted data; it can see which domain you connect to, but the content stays encrypted.

An app shows a certificate error and will not open?

The app pins its own certificate and refuses a substitute. Exclude its host from the hostname list.

Do I need this much care just to block ads?

Yes. Ad-blocking modules decrypt too, and the decrypted hosts can be read just the same. Install only modules from reliable sources with short hostname lists.

Should I remove the certificate after turning MITM off?

Yes. While the certificate stays in the system and the private key exists, it can still be misused.

Next

Related settings

On this page: FlClash MITM, FlClash HTTPS decryption, FlClash modules