Skip to content
Discussion options

You must be logged in to vote

Successful decryption alone is not enough. A secure restore process must verify both cryptographic integrity and filesystem safety.

I would approach this in several layers:

  1. Authenticate the package: Verify the metadata and cryptographic authentication tags. Reject modified or malformed data rather than attempting a partial recovery.
  2. Verify the complete inventory: Check that all expected files and chunks are present and correctly associated. If the format uses a manifest or Merkle root, validate it before accepting the package.
  3. Validate every destination path: Reject absolute paths, traversal components, invalid names, and any path that escapes the designated restore directory.
  4. Prevent ac…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CodRiter13
Comment options

Answer selected by ElmanCod110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants