Page MenuHomePhabricator

Create a simple tool to check for bidirectional unicode characters
Closed, ResolvedPublic

Description

As mentioned within T295291, trojansource.codes is a thing. Github has a CI-ish checker that looks for problematic bidirectional unicode characters and warns on them. I'm not seeing where that's been open-sourced anywhere, but it shouldn't be too difficult to write our own python script or whatever to do something similar. Not sure if this should outright fail a pipeline test but that might be our only option in Gitlab CE? Perhaps a starting point.

Event Timeline

sbassett closed this task as Resolved.EditedJan 25 2022, 10:02 PM
sbassett claimed this task.
sbassett moved this task from Back Orders to Our Part Is Done on the Security-Team board.

Per previous, we'll just use the semgrep rule as one of our default policies/rules for the semgrep appsec ci yaml template.

Update: we're actually using semgrep's p/supply-chain policy, which has the above bidi rule as its only, current rule.

Update: we likely can't use p/supply-chain at this time due to potential licensing issues: T304737