Skip to main content

Sonarleaks

drawing

Summary

SonarCloud is a SAST SaaS platform built onto SonarQube.

During my DevSecOps journey, I recently discovered that Sonarcloud (From SonarSource) offers the possibility to explore public projects. After working on Postleaks and popularity of some other similars projects (like swaggerHole) related to public data on SaaS, the Explore button triggers my curiosity.

I created this small tool to get basic infos about Sonarcloud projects from the Explore tab. Some of them are from private source repository, or can be related to a company which misconfigured the repository visibility.
It becomes juicy when the results provides the source code AND the static analysis.

alt text

Usage

❯ sonarleaks -h
usage: sonarleaks [-h] [--top] [--loc LOC] [-k KEYWORD] [-kf KEYWORD_FILE] [--private] [--source]

Sonarleaks 🛰️💧 Search for private code published to Sonarcloud.

options:
  -h, --help        show this help message and exit
  --top             Filter on top public projects
  --loc LOC         Filter on minimum of lines of code
  -k KEYWORD        Keyword (company, project, etc.)
  -kf KEYWORD_FILE  Keywords file
  --private         Only display components linked to potential private repository.
  --source          Only display components with available source code.

Examples

Top public projects, with minimum 500000 lines of code, with private repository and source code available

❯ sonarleaks --top --loc 500000 --source --private

alt text

Projects related to keyword Salesforce

❯ sonarleaks -k salesforce

alt text

Metadata

Release files for sonarleaks 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sonarleaks 1.0.0
File Size Uploaded
sonarleaks-1.0.0.tar.gz 18.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sonarleaks 1.0.0
File Interpreter ABI Platform
sonarleaks-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 36.7 kB

Release files / sonarleaks-1.0.0.tar.gz

Download URL sonarleaks-1.0.0.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5aff7aeb369161a183b53e43386a118d6c26a66b6093d95f3400b9831d061476
BLAKE2b-256 checksum
How to use checksums
ddc68897e8b9b1f7fd8b561135c9a8959f073527041504f17d712fc59c9bdbc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.9

Release files / sonarleaks-1.0.0-py3-none-any.whl

Download URL sonarleaks-1.0.0-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbfae1f91e47c012718143e09b738ca11133cca83849734f2f490395f66b4e6e
BLAKE2b-256 checksum
How to use checksums
7721a50fc7b15b1d83c0200c82cce0170b44a13443232e902a75c55c30bca3ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page