Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom metadata in MP4 such as fingerprint for authenticity #165

Open
cedricve opened this issue Jan 4, 2025 · 0 comments
Open

Add custom metadata in MP4 such as fingerprint for authenticity #165

cedricve opened this issue Jan 4, 2025 · 0 comments

Comments

@cedricve
Copy link

cedricve commented Jan 4, 2025

Hey there! Thanks for the great work. We have been working on https://github.com/kerberos-io/agent for a few years now, and we have been successfully integrated your library in our core product which is now used by thousands of users (open source). https://github.com/kerberos-io/agent/blob/master/machinery/src/capture/main.go#L228-L242

We are looking into adding custom metadata, such as an encrypted fingerprint, so the authenticity of the MP4 can be validated (in the event of altering) or "faking" the fingerprint, we could validate be decrypting using a public key.

To achieve this we were wondering what's the best way to write this metadata into the MP4 structure, as we could not see how this could be done with the current implementation. Happy to brainstorm.

I thought to have something in the WriteTrailer method that would close the MP4 and add some metadata on top (hash of the entire MP4 for example + encrypted).

https://github.com/kerberos-io/agent/blob/master/machinery/src/capture/main.go#L289-L291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant