New Update 3P-Matrix-lite new version is available in Chrome Webstore with improved functionality

Thread details
Major update pushed to Chrome Webstore

The recent troubles with uBO (XSS attack), the dislike I have against uBO's json-edit family made me add some new protections

The increase of protections created another problem, so I got in contact with my acquaintances the UX-expert and the security expert again and after a Saturday man caving and brain storming this was the result. 3PM got two additional protection groups and exceptions (allow) list were handled in one place (the allow list but now with subcategories).

Also the code was optimized for security and performance again, this explains the increase in version bump. I just show the pictures.

FIREWALL PROTECTION, old protections only renamed and filtered on core functionality (click to enlarge)
1795599958802.png


DOWNLOAD PROTECTION, existed already only jumping into action when triggered for lowest performance impact, using heuristics and Virus Total
1795600285210.png


SCAM PROTECTION, some new and (most) old protections grouped together (for speed) and URL heuristics is also done in steps to minimize performance impact
1795600373748.png

TAMPER PROTECTION, a whole new group and a few existing protections, only jumping into action when triggered for lowest performance impact and using heuristics to combine signals into a smart protection.
1795600541005.png


ALLOW (WHITE) LIST, now with subcategories (old format for all is still accepted)
1795601670784.png


Because I moved protections to on-demand (smart triggers) and grouped relatively expensive scam protections into a group the overal impact on performance is lowered.

@Sampei.Nihira no need to use level 4 for webshops. tamper protection should warn you when a website has poor security or the user uses poorly designed (from security perspectieve) extensions, like you ;):LOL:
 
Last edited:
In my opinion, you should make it clear to everyone that 3P Matrix uses this list of filters:

dns-blocklists/adblock/spam-tlds-ublock.txt at main · hagezi/dns-blocklists

Furthermore, unless I’m mistaken, that filter list is not included in any of Hagezi’s filter lists (Pro, Pro++, etc.).
It's better than what NextDNS offers (High-risk TLDs).
Therefore, the protection offered by 3P Matrix (unless I’m mistaken, with the new Protection 4 ?) complements the protection offered by whichever DNS the user chooses to use.
 
Last edited:
In my opinion, you should make it clear to everyone that 3P Matrix uses this list of filters:

dns-blocklists/adblock/spam-tlds-ublock.txt at main · hagezi/dns-blocklists

Furthermore, unless I’m mistaken, that filter list is not included in any of Hagezi’s filter lists (Pro, Pro++, etc.).
It's better than what NextDNS offers (High-risk TLDs).
Therefore, the protection offered by 3P Matrix (unless I’m mistaken, with the new Protection 4 ?) complements the protection offered by whichever DNS the user chooses to use.
Everyone? 3PM only got 233 users ;)

I will check 3P licenses, should be in it. Although you are right, as posted earlier, the benefit of developing advanced/power user extensions, is that most users figure out how it works and understand nuances, which allows me to provide (and maintain) minimal documentation.

Thanks (y)

P.S. When you lock those online shops to level 2, they will get tamper-protection enforced.
 
Sorry you are wrong, uBD has not become more effective.

uBD was not vulnerable to the XSS attack (like uBO) for two reasons, it has build-in boundary guards and it does drop scriptlets requiring trust, accepting raw JavaScript or long input parameters (although uBO is now also closing the long parameter risk step by step).

The reason it is in, is because uBD processes scriptlets from both AG and uBO. When one safe scriptlet is added (in this case uBO), uBD also incorporates it.

And please don´t post uBlock Dynamic stuff in 3P Matrix

Roger!!
Deleted posts.
 
Version 5.1.9 with all the new protections (see post #201) available in Chrome Web Store.

As posted you can lock webshops you buy from at level 2 (mild) to launch tamper protection early (earlier is better because it warns only, so you can abandon the transactions).

I opened this link just to check out 3P Matrix.
If you'd like, you can also explain the protection in question to the other forum members:

hxxps://cineblog01.fun/casa/

1.png

(y);)
 
1795672599546.png

@Sampei.Nihira - first warning was heuristics based
@bjm_ thanks it got worse, now DNS4EU seems to have that domain on its blacklist

How URL heuristics work (in stages)
1. Check whether connection is unusual (e.g. IP address only or insecure connection or non-standard port)
2. Check whether TLD is on much abused TLD list
3. Check whether domain is on easy to abuse domain lists (e.g. free hoster, Dynamic DNS abuse, much abused host/code domains)
4. Check on URL whether URL is sketchy (e.g. shows sins of brand impersonation or has phishing trigger words)

When suspicious indicators (when risk score above "requires further investigation" level)
5. Simultaneous checks on domain age (new domains are more suspicious than established domains) and DNS malware cheeck
6. All found signals and indicators are cross related and weighted, which could increase or lower risk score

When risk score above ¨certain level" = show warning with header showing level of confidence (see bjm's post and this post).

As posted these heuristics catch 90% of the URL Hause malware links. The download protection uses similar heuristics plus Virus Total reputation.
The tamper protection is also based on heuristics, it also fires in stages (you can reduce the default detection triggers when you want) and looks for signals listed on the tamper protection tab.

Reason why I advise to lock webshops on level 2, because earlier tamper detection is better. When uBO json-edit family would be misused through a vulnerability in UBO (like the XSS or CSP example) or through a supply chain problem (one of the maintainers of uBO assets turning bad and misusing the json-edit family).
 
Last edited:
@LinuxFan58
Really nice improvements for this release, well organized, congrats(y)
Is 3P-matrix protect against Magecart threats ? :

Magecart – Overview​

Magecart is a group of cybercriminal activities targeting e-commerce websites to steal customers' payment card information through malicious code injection, fake payment forms, and JavaScript skimming.

These attacks can compromise legitimate website scripts, third-party services, or payment interfaces to capture sensitive information directly from customers' browsers.

Why a WAF is not enough:

A Web Application Firewall (WAF) alone cannot reliably detect or prevent Magecart attacks because malicious activity often takes place on the client side, directly within the user's browser.

Attackers can inject malicious JavaScript, manipulate the DOM, replace legitimate payment forms, or abuse trusted third-party scripts and services. This activity may occur after the page has been delivered by the web server, making it difficult for traditional WAF rules to identify.

Security recommendation:

Magecart protection requires a multi-layered security approach combining WAF protection with JavaScript integrity monitoring, Content Security Policy (CSP), client-side behavioral monitoring, third-party script control, and network traffic analysis.

Key takeaway: A WAF protects the web application, but it does not provide sufficient visibility into what happens inside the customer's browser.
 
@7Oz-64 Thanks for bringing it up (y)

Short answer: yes, 3P Matrix has layered protection against Magecart card skimming.

Magecart hides code in a web shop that copies your card details as you type them and sends them to criminals.

Firewall protection: scripts from risky connections (and in level 3) outside safer regions are blocked and that's how many skimmers get in. Data sent to messaging bots (Telegram, Discord) and known form-to-email services is blocked too (the latter only outside safer-regions to prevent breakage for regular use!), also making exfiltration harder. These measures reduce access to places where malware writers often store malicious code and receive stolen data.

Tamper Protection watches payment pages closely. That means bank and payment sites, pages with a card field or a payment provider, and checkout or cart addresses. It warns when a card number, IBAN or password is copied to another site, or when a payment form is redirected. It also spots fake payment overlays and fake second card forms next to the real payment frame. Hidden card fields, invisible frames from other sites and scripts from suspicious look-alike domains are flagged as well. All signs go into one warning with a risk rating, so you get a single clear alert.

Important disclaimer: No extension catches everything. 3P Matrix aims to reduce the risk. Because the protections are context aware (e.g. safer-regions or tamper detection triggers or download protection checking name against file type against mime type in pre and post download), they can warn for signals which may look common in other situations. Microsoft Defender uses this as OS-aware security, @danb uses this in (but in a way more advanced manner using AI in stead of heuristics) in the security postures of Voodoo Shield.

3P Matrix has the same approach for the browser as OS-Armor does for the Windows OS: trying to close (or strengthen) as much doors as possible with the idea when you raise as much thresholds as possible for specific risks/intrusions the operating space for malware tightens and makes misuse of vulnerabilities (often by combining them) harder to achieve in a predictable and successful manner.

Idea to @NoVirusThanks Why don´t you combine API Void browser protection and API Void Script Stop and have a look at the other extra protections of 3PM (and I invite you to brain pick as much as you want) and launch it as API Void Browser Armor?

As long as you (@NoVirusThanks ) keep it free for home users, it would be best for MT-forum members. It also is an answer to the worries @goodjohnjr (me being 68 and the only maintainer) and let's be honest, I only created 3P Matrix because you did not implement the slider in API Void Script Stop (see post #58). When you port it to Firefox to (to much work and hassle for me), Firefox users would also benefit! Even the name sounds good: API Void Browser Armor :sneaky:

Extra cross selling and up selling bonus: for the download and scam protection you could add your own reputation service for (paying) business users:
Cybersecurity APIs for Threat Detection, Analysis & Prevention | APIVoid
 
Last edited:
View attachment 301618
@Sampei.Nihira - first warning was heuristics based
@bjm_ thanks it got worse, now DNS4EU seems to have that domain on its blacklist

How URL heuristics work (in stages)
1. Check whether connection is unusual (e.g. IP address only or insecure connection or non-standard port)
2. Check whether TLD is on much abused TLD list
3. Check whether domain is on easy to abuse domain lists (e.g. free hoster, Dynamic DNS abuse, much abused host/code domains)
4. Check on URL whether URL is sketchy (e.g. shows sins of brand impersonation or has phishing trigger words)

When suspicious indicators (when risk score above "requires further investigation" level)
5. Simultaneous checks on domain age (new domains are more suspicious than established domains) and DNS malware cheeck
6. All found signals and indicators are cross related and weighted, which could increase or lower risk score

When risk score above ¨certain level" = show warning with header showing level of confidence (see bjm's post and this post).

As posted these heuristics catch 90% of the URL Hause malware links. The download protection uses similar heuristics plus Virus Total reputation.
The tamper protection is also based on heuristics, it also fires in stages (you can reduce the default detection triggers when you want) and looks for signals listed on the tamper protection tab.

Reason why I advise to lock webshops on level 2, because earlier tamper detection is better. When uBO json-edit family would be misused through a vulnerability in UBO (like the XSS or CSP example) or through a supply chain problem (one of the maintainers of uBO assets turning bad and misusing the json-edit family).

It's not like you described,it hasn't gotten worse.
I open the link in L2.
But @bjm_ opens it in L3.

As you can see today, I replaced the yellow arrow in my first screenshot with a red one, but the situation is the same:

2.png
 
Last edited:
Level 2 has higher threshold, level 3 fires earlier

Yes, this is an interesting case because there’s a significant discrepancy with NextDNS’s protections.
The 3P Matrix alert says the domain was registered 6 days ago.
But it isn’t blocked by any of NextDNS’s protections:

  1. High-risk TLDs
  2. Recently active domain
  3. Newly registered domains
So, who’s wrong?:unsure:
 
@Sampei.Nihira 3PM uses RDAP for domain age, you can check this out yourself.
NextDNS probably uses another source (or update frequency).

1795707884682.png





7Oz-64 Question (whether 3PM protects against Magecart) made me realize that I was better protected with 3PM than my wife while she does a lot of more shopping online (thanks @7Oz-64 for providing this insight). So I thought of a zero-configuration version of 3PM which runs at level 2 firewall protection with level 3 scam and tamper protection using hagezi's most abused TLD as auto raiser for level 3 protection (and auto raises high risk, 25 most visited, adult websites to level 4). So house admins can add it on PC's of their wife and kids.

It is in early stage but starts to look good and work well and is called: Safe Surfing Sentinel (on github and pushed to CWS)
 
Last edited:
This feature, which I've disabled, triggers a lot of alerts for me.

1.png

What is its purpose?

But I won't give any examples.
Let's wait for other users to do so, if they choose to.
 
@Sampei.Nihira
i've not encountered this yet!!!!

I also think it may depend on the assigned page security levels. What I mean is that there could be a kind of semi-automated assignment of different security levels. For example, a website operating at L3 might trigger fewer alerts than being at L2, simply because more protection rules are in place. But I could be wrong about that.
 

MalwareTips community

Join the discussion. It's free.

Create an account to reply to this thread, ask your own questions and get help from people who know security.

  • Reply and ask your own questions
  • Get an alert when someone answers
  • Free malware removal help from volunteers

Free account

Divine_Barakah Jonny Quest itsmatt1 Spartan 75,729 members since 2010
or
Have malware? Get free help

Recently browsing

Members and guests who viewed this thread in the last 5 minutes

Back
Top