Skip to main content

Sonarleaks

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sonarleaks-1.0.0.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

sonarleaks-1.0.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file sonarleaks-1.0.0.tar.gz.

File metadata

  • Download URL: sonarleaks-1.0.0.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for sonarleaks-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5aff7aeb369161a183b53e43386a118d6c26a66b6093d95f3400b9831d061476
MD5 17ec88bd399449f0fcb46a929d561422
BLAKE2b-256 ddc68897e8b9b1f7fd8b561135c9a8959f073527041504f17d712fc59c9bdbc4

See more details on using hashes here.

File details

Details for the file sonarleaks-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sonarleaks-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for sonarleaks-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbfae1f91e47c012718143e09b738ca11133cca83849734f2f490395f66b4e6e
MD5 b3341dd96cef69f84159e35380241c8f
BLAKE2b-256 7721a50fc7b15b1d83c0200c82cce0170b44a13443232e902a75c55c30bca3ad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page