{"id":22435411,"url":"https://github.com/subbyte/padlabs","last_synced_at":"2025-06-26T00:04:10.761Z","repository":{"id":73691103,"uuid":"70844327","full_name":"subbyte/padlabs","owner":"subbyte","description":"Program Anomaly Detection Labs","archived":false,"fork":false,"pushed_at":"2017-01-17T19:47:47.000Z","size":21918,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-26T00:03:25.949Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subbyte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-13T20:13:43.000Z","updated_at":"2021-03-05T22:17:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"97935f33-031e-4868-b14f-29c9717e7bdf","html_url":"https://github.com/subbyte/padlabs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/subbyte/padlabs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subbyte%2Fpadlabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subbyte%2Fpadlabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subbyte%2Fpadlabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subbyte%2Fpadlabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subbyte","download_url":"https://codeload.github.com/subbyte/padlabs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subbyte%2Fpadlabs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261973725,"owners_count":23238586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T23:13:31.724Z","updated_at":"2025-06-26T00:04:10.685Z","avatar_url":"https://github.com/subbyte.png","language":"Shell","readme":"# Program Anomaly Detection Labs\n\n### Lab Demo\n\nPart of this lab is used in the 2016 ACM Conference on Computer and Communications Security (CCS) Tutorial:\n\n* [Program Anomaly Detection: Methodology and Practices](https://www.sigsac.org/ccs/CCS2016/tutorials/#anomaly)\n * 10:00 AM - 11:30 AM\n * Oct 25, 2016\n * Hofburg Palace, Vienna, Austria\n * [Lab tasks in the tutorial](https://github.com/subbyte/padlabs/blob/master/src/ccs2016.tut01.md)\n\n### Included Scripts\n\n* n-gram/shingle model: the script will generate n-grams to construct the model\n* deterministic finite automaton (DFA) model: the script will generate DFA vertices/edges for Neo4J visualization\n\n### Example: Data-Driven Program Anomaly Detection Workflow (n-gram Model)\n\n1. Generate training traces\n ```bash\n strace -o ls.trace ls .\n ```\n\n2. Extract pure syscall lists from traces\n ```bash\n tr '[:upper:]' '[:lower:]' \u003c ls.trace | sed '/^[^a-z_]/d' | sed 's/(.*//' \u003e sys.list\n ```\n\n3. Build the profile using scripts in `src`\n ```bash\n ./shingling.sh sys.list 4\n ```\n\n4. Merge multiple training profiles to construct the normal behaivor model\n ```bash\n cat profiles | sort -u \u003e modelfile\n ```\n \n5. Generate testing traces and detect anomalies\n ```bash\n comm -13 training testing\n ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubbyte%2Fpadlabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubbyte%2Fpadlabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubbyte%2Fpadlabs/lists"}