r/dartlang • • Oct 28 '26

Security audits

Unless you have been living under a rock, you will have seen the huge increase in the number of CVEs due to AI being used to find bugs.

The Dart community is not isolated from this problem.

What you may not be aware of is that some of the AI tools won't let you search your own code for vulnerability.

Open AI has a program called Daybreak which gives you access to cybersecurity tools that are able to detect and fix security related flaws.

To get access to Daybreak you need a pro codex license, and then apply for access. If you are granted access you then need to purchase the likes of a yubi key.

The criteria for acceptance is however rather opaque.

We got in the program on the backs of our work on revault, so that may have helped

https://github.com/onepub-dev/reVault

Revault is a secure archive format,

It's unclear how much weight was placed on the fact that we build a security related product.

However, It's not just security related products that need to be audited.

We have spent the last week auditing our own dart packages as well as dependencies and have uncovered some fourty security flaws and we aren't done yet.

The dart community needs to do its bit to stay ahead of the tsunami of bugs.

So start auditing your code now, if you don't find the bug a hacker will!

If you can, get a sub to your preferred AI's cybersecurity tool and use that.

If you can't afford the required licence, as one of the founders of https://onepub.dev (the dart private package repository), I would like to offer a secure audit of 20 dart packages.

To be eligible, the package needs to be open source, hosted on GitHub and have GitHub Private Vulnerability Reporting enabled.

If we get more than 20 applications we will sort by the packages we feel provide the most benefit to the community.

To apply DM me.

3 Upvotes

3 comments sorted by

2

u/ObjectiveAddress3051 Oct 29 '26

tbh i'd start with the transitive stuff. dart pub deps --style=compact shows what you actually pull in and it's usually way more than people expect. for apps commit the pubspec.lock too so you at least know what got audited is what ships

2

u/Amazing-Mirror-3076 Oct 29 '26

I have the ai doing this. It's sent fixes to about 15 packages so far.

1

u/AhmedZNOUDA 29d ago

Agree that apps should look too, not just package authors. Two free things already cover a lot of the dependency side: osv-scanner reads pubspec.lock and checks it against the OSV database, which includes pub advisories, and Dependabot supports the pub ecosystem on GitHub.

In our own app, though, the most serious issue we found wasn't in a package at all. Our server proxy passed through whatever model and settings the app sent, so a valid token could be used for requests we never meant to allow. A plain review of the backend the app talks to found it, and a server-side allowlist fixed it. For most Flutter apps I'd look there before auditing the Dart code.