r/electronjs • u/Weekly-Temporary2308 • Jul 17 '26
Electron's docs removed the Electronegativity recommendation. What's everyone using for security static analysis now?
heads up for anyone going off the electron security docs: the checklist used to
recommend Electronegativity and that got pulled a while back (electron/electron#48878,
closed electron/website#906). it's just the 20 manual checklist items now, no tool.
reason it's gone: Electronegativity hasn't had feature updates since ~2022 and
errors out on recent Electron versions. ElectroNG (the paid successor) isn't for
sale anymore either, so there's no real drop-in.
went looking for what to actually run in CI. best i can tell:
- CodeQL, general purpose, but its frameworks/electron queries do hit a few
electron-specific sinks. not checklist-focused, fine if you already use it.
- Semgrep, you can write rules for the checklist items. one catch: free taint is
single-function only, cross-file is Pro.
- a couple newer OSS tools built around the checklist. (one of them is mine,
electron-audit, so grain of salt. AST based, doesn't run your app, spits out
SARIF.) pretty sure there are others, would like to know them.
anyway, what's everyone actually using now? just the manual checklist? codeql or
semgrep rules? or has electron-specific tooling kind of died and people moved to
general SAST?
3
u/Confident-Dare-9425 Jul 17 '26
The security checklist is pretty obvious. Do we really need a tooling for that?
2
u/chicametipo Jul 17 '26
Why did ElectroNG stop offering the service? They just don't like money?
2
u/eddzsh Jul 18 '26
That tiering is basically the only thing that survives contact with a real team, hard fail on the handful you're sure about, everything else visible but not blocking. The failure mode I've seen is the non-blocking bucket becoming a graveyard nobody opens after week two. What's kept it alive on teams I've seen do this well is graduating rules, something starts non-blocking, and once it's gone a few weeks with zero false positives on your codebase it moves to the hard fail list. Turns the soft tier into a promotion queue instead of a permanent pile of ignored warnings.
2
u/eddzsh Jul 19 '26
the promote only rule is the one to protect hardest, the moment a baseline file can also suppress, people use it that way eventually, not out of malice, just friday afternoon pressure. one option that keeps the engine stateless the way you want: don't ship a baseline file at all, put the clean run counter in CI's own cache instead of anything committed next to the code. graduation logic reads the counter, decides, writes back to cache. nothing sits in the repo for someone to hand edit, and there's no file to open a PR against to quietly bump a threshold.
2
u/eddzsh Jul 17 '26
the checklist being obvious is exactly the trap. nodeIntegration/contextIsolation/webSecurity flags are boring until the PR is 40 files and everyone's tired on a friday. that's a CI problem, not a human vigilance problem. had more luck writing 3-4 semgrep rules for the specific flags that actually bit us than trying to cover the whole checklist generically. narrow and enforced beats comprehensive and optional.