{"id":14069279,"url":"https://github.com/tim-weis/ovba","last_synced_at":"2025-07-30T05:31:59.398Z","repository":{"id":55918783,"uuid":"287273067","full_name":"tim-weis/ovba","owner":"tim-weis","description":"An Office VBA project parser written in 100% safe Rust.","archived":false,"fork":false,"pushed_at":"2024-12-30T20:52:54.000Z","size":152,"stargazers_count":9,"open_issues_count":6,"forks_count":4,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-07-05T19:11:48.733Z","etag":null,"topics":["parser"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/tim-weis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-08-13T12:25:10.000Z","updated_at":"2025-03-20T02:02:19.000Z","dependencies_parsed_at":"2024-12-19T18:23:40.061Z","dependency_job_id":"a9bfe9e1-a4b5-4cd4-9154-4dbe4bee908e","html_url":"https://github.com/tim-weis/ovba","commit_stats":{"total_commits":67,"total_committers":1,"mean_commits":67.0,"dds":0.0,"last_synced_commit":"975c6c035966de77e8ed5a7d08b895bdc1be94ce"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/tim-weis/ovba","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-weis%2Fovba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-weis%2Fovba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-weis%2Fovba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-weis%2Fovba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tim-weis","download_url":"https://codeload.github.com/tim-weis/ovba/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-weis%2Fovba/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267815187,"owners_count":24148356,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["parser"],"created_at":"2024-08-13T07:06:47.874Z","updated_at":"2025-07-30T05:31:59.099Z","avatar_url":"https://github.com/tim-weis.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"[![crates.io](https://img.shields.io/crates/v/ovba.svg)](https://crates.io/crates/ovba)\n[![docs.rs](https://docs.rs/ovba/badge.svg)](https://docs.rs/ovba)\n[![tests](https://github.com/tim-weis/ovba/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/tim-weis/ovba/actions)\n\nAn Office VBA project parser written in 100% safe Rust. This is an implementation of the [\\[MS-OVBA\\]: Office VBA File Format Structure](https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-ovba/575462ba-bf67-4190-9fac-c275523c75fc) protocol (Revision 9.1, published 2020-02-19).\n\n## Motivation\n\nBinary file format parsers have historically been an attractive target for attackers. A combination of complex code logic with frequently unchecked memory accesses have had them fall victim to remote code execution exploits many times over.\n\nRust is a reliable ally in addressing many of these security concerns, empowering this crate to deliver a safe parser implementation.\n\n## Features\n\nThis library provides read-only access to VBA projects' metadata and source code. Notable features include:\n\n* Extract source code.\n* Inspect metadata, like contained modules, references, etc.\n\nThis library does not provide a way to extract the raw binary VBA project data from an Office document. This is the responsibility of client code. The companion [ovba-cli](https://github.com/tim-weis/ovba-cli) tool illustrates how this can be done.\n\n## Usage\n\nWrite out all modules' source code:\n\n```rust\nuse ovba::{open_project, Result};\nuse std::fs::{read, write};\n\nfn main() -\u003e Result\u003c()\u003e {\n    let data = read(\"vbaProject.bin\")?;\n    let project = open_project(data)?;\n\n    for module in \u0026project.modules {\n        let src_code = project.module_source_raw(\u0026module.name)?;\n        write(\"./out/\".to_string() + \u0026module.name, src_code)?;\n    }\n\n    Ok(())\n}\n```\n\nList all CFB entries contained in a VBA project:\n\n```rust\nuse ovba::{open_project, Result};\nuse std::fs::read;\n\nfn main() -\u003e Result\u003c()\u003e {\n    // Read raw project container\n    let data = read(\"vbaProject.bin\")?;\n    let project = open_project(data)?;\n    // Iterate over CFB entries\n    for (name, path) in project.list()? {\n        println!(r#\"Name: \"{}\"; Path: \"{}\"\"#, name, path);\n    }\n\n    Ok(())\n}\n```\n\n## Backwards compatibility\n\nAt this time, both API and implementation are under development. It is expected to see breaking changes before reaching a 1.0 release. With 0.X.Y releases, breaking changes are signified by a bump in the 0.X version number, leaving non-breaking changes to a bump in the Y version number.\n\nThis is a preview release. It has been published to allow others to use it, and solicit feedback to help drive future decision.\n\n## Future work\n\nAll future work is tracked [here](https://github.com/tim-weis/ovba/issues). Notable issues include:\n\n* [Improve error reporting](https://github.com/tim-weis/issues/10).\n\nIf you are missing a feature, found a bug, have a question, or want to provide feedback, make sure to [file an issue](https://github.com/tim-weis/ovba/issues/new).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-weis%2Fovba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftim-weis%2Fovba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-weis%2Fovba/lists"}