Skip to content

About

Population level analyses on gitgalaxy scanned data files

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitgalaxy-population-analyses

Population-level statistics over GitGalaxy scan data: where a single scan describes one repository, this repo asks what hundreds of scans look like together — how risk exposures distribute across real-world code, whether repositories cluster into structural archetypes, and how malware-labeled populations separate from benign ones. Raw inputs come from gitgalaxy-raw-output (unedited per-repo scan bundles); this repo merges them into master SQLite databases (build_master_db.py, master_db_updater.py) and runs the analyses offline. Nothing here is on any CI path.

Archetype z-score distribution

What's here

  • structural-fingerprint-scanner: a packaged tool (sfs) that fingerprints GitGalaxy scans in the engine's population reference frame, compares repositories by design (profile distance) and by inherited code (calibrated function-level structural twins), and draws profile and descent trees. It replaces the earlier twin_discovery*.py and mine_dna_stoichiometry.py scripts (now in archive/). Validated on 44 DOOM ports with known ancestry (examples/doom).
  • Master database assembly — build_master_db.py / master_db_updater.py merge raw-output scan DBs into one population database (data/); db_health_assessor.py sanity-checks it.
  • Risk-exposure distributions — detailed_risk_exposure_stats_from_db.py, plot_ridgelines.py → the ridgeline plots in analyses_ridgeplots/ (66 charts: per-metric distributions across the population, e.g. avg_func_args_ridgeplot.png).
  • Structural archetypes — archetype_analysis_suite.py, apply_language_specific_clusters.py, repo_macro_fingerprints.py: clustering repositories by structural signature profile.
  • Threat/malware population studies — analyze_threat_prediction_distributions.py, repo_level_malware_analysis_suite.py, graph_malware_zscores_by_cluster.py, malware_telemetry_report.py, extract_zero_day_suspects.py → analysis_outputs/ (z-score separations of malware-labeled vs. benign repos, classifier confusion heatmap, danger_zone_audit.csv).
  • Function-level studies — function_analysis_suite.py, validate_function_metrics.py.

Repo-level malware z-score distribution

The GitGalaxy constellation

This repo is one strand of the web of repos that build, prove, and showcase GitGalaxy:

About

Population level analyses on gitgalaxy scanned data files

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages