{"id":15148683,"url":"https://github.com/xunillen2/openbsd-integrity","last_synced_at":"2026-01-20T02:48:15.389Z","repository":{"id":186597556,"uuid":"580038192","full_name":"xunillen2/openbsd-integrity","owner":"xunillen2","description":"Small script to check openbsd system integrity ","archived":false,"fork":false,"pushed_at":"2022-12-26T15:38:35.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T04:31:30.808Z","etag":null,"topics":["integrity","integrity-checker","openbsd","openbsd-scripts"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xunillen2.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}},"created_at":"2022-12-19T15:07:37.000Z","updated_at":"2022-12-26T14:53:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e2a5abc-fdca-4902-8c10-39b21bf8c7c8","html_url":"https://github.com/xunillen2/openbsd-integrity","commit_stats":null,"previous_names":["xunillen2/openbsd-integrity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xunillen2/openbsd-integrity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xunillen2%2Fopenbsd-integrity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xunillen2%2Fopenbsd-integrity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xunillen2%2Fopenbsd-integrity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xunillen2%2Fopenbsd-integrity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xunillen2","download_url":"https://codeload.github.com/xunillen2/openbsd-integrity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xunillen2%2Fopenbsd-integrity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28594958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["integrity","integrity-checker","openbsd","openbsd-scripts"],"created_at":"2024-09-26T13:21:41.201Z","updated_at":"2026-01-20T02:48:15.375Z","avatar_url":"https://github.com/xunillen2.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openbsd-integrity\nintegrity is simple script for checking system integrity and generating integrity hash files using [mtree](https://man.openbsd.org/mtree.8)\n\n## Usage\n* Before starting, set seed value to KEY variable. This can be ~20 digit number.\n\n### Generating hash files\n```\n./integrity gen \u003cpath to directory\u003e\n```\nsample command:\n```\n./integrity gen /int_sam\n```\n* This will generate hash files `hash_bin`, `hash_sbin`, `hash_etc` and `hash_usr` in `/int_sam` directory. This hash files will contain hash of all files contained in `/bin`,`/sbin`, `/etc` and `/usr`.\n* If integrity is started with gen parameter with folder that already contains `hash_bin`, `hash_sbin`, `hash_usr`, `hash_etc`. Those files will be moved to folder named `old_hash`.\n* After every process of generating hash files, integrity will log status activity to /var/log/messages\n```\nDec 11 13:22:14 SampleMachine [Integrity]: Generating new integrity hash files... Hash files location: /int_sam/. hash functions: cksum,md5digest,sha1digest,sha256digest\nDec 11 13:26:01 SampleMachine [Integrity]: Generating new integrity hash files completed!\n\n```\n* _More folders will be added later, or more specifically option to add more folders._\n* _Now integrity also checks bsd.rd and bsd.sp hash_\n\n\n### Verifying files\n```\n./integrity ver \u003cpath to directory\u003e\n```\nsample command:\n```\n./integrity ver /int_sam\n```\n* If folder contains hash files `hash_bin`, `hash_sbin`,`hash_etc`, `hash_usr`, integrity will check the integrity of all files contained in `/bin`,`/sbin`, `/etc` and `/usr`, and will report changes and status to root with mail.\n* Same as `gen` argument, `ver` will log activity /var/log/messages\n\n### On boot verification - broken\n* **integrity.sh needs to be in / (root dir) for installation to work**\n* Integrity can be started on boot, and verify all files and changes in specified folders.\n ```\n./integrity install \u003cpath to directory\u003e\n```\nsample command:\n```\n./integrity install /int_sam\n```\n* This will add `./integrity ver /int_sam` to `rc.local` file, which will run verification on every boot","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxunillen2%2Fopenbsd-integrity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxunillen2%2Fopenbsd-integrity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxunillen2%2Fopenbsd-integrity/lists"}