How Do Hash Values Preserve Cybercrime Evidence?
Introduction
Digital evidence can be altered, copied, deleted, or corrupted without leaving the same visible signs associated with physical documents. In cybercrime cases, a seized hard drive may contain emails, messages, files, browser history, account records, and other data relevant to the investigation. The prosecution must therefore show that the digital evidence presented in court is substantially the same evidence obtained from the seized device.
Cryptographic hash values and forensic imaging help establish that connection. A forensic image preserves an exact bit-by-bit copy of a storage device, while a hash value functions as a digital fingerprint that can reveal whether the image or data changed after acquisition.
Philippine law requires law enforcement authorities to maintain the integrity of computer data and to observe prescribed procedures for the seizure, examination, custody, and deposit of digital evidence. However, the governing provisions do not require the use of one exclusive algorithm, such as SHA-256, in every case.
What Is a Forensic Image?
A forensic image, also called a forensic copy, is an exact bit-by-bit copy of a data carrier. It includes not only ordinary visible files but also slack space, unallocated space, and unused space that may contain recoverable information (Rule on Cybercrime Warrants, A.M. No. 17-11-03-SC).
A forensic image differs from an ordinary file copy. A normal copy may omit deleted material, system data, metadata, hidden files, or unallocated portions of the storage medium. A forensic image is intended to preserve the entire relevant data environment for examination.
The investigating team should ordinarily examine the forensic image rather than repeatedly examine the original seized device. This reduces the risk that the original data will be changed through ordinary system processes or investigative activity.
What Is a Cryptographic Hash Value?
A hash value is the product of a mathematical algorithm applied to digital information, such as a file, disk, or logical drive. It creates a digital fingerprint for the data. A change in the data—even a very small change—will ordinarily produce a different hash value (Rule on Cybercrime Warrants, A.M. No. 17-11-03-SC).
The hash value does not prove by itself that the data is truthful or that the accused committed the offense. Its function is narrower: it helps show that the digital copy or item examined is identical to the data acquired at an earlier stage.
For example, if the hash value of a forensic image was calculated when the image was created and the same value is obtained when the image is later examined, the matching values support the conclusion that the image was not altered between those points in time.
Does Philippine Law Require SHA-256 Specifically?
No exclusive SHA-256 requirement appears in the authorities addressed here. The Rule on Cybercrime Warrants requires the identification and recording of hash values, but it does not state that SHA-256 must be used in every forensic acquisition.
The legally significant requirement is the preservation and demonstration of data integrity. The forensic examiner should identify the algorithm used, record the resulting hash value, explain the acquisition process, and show that the value remained consistent throughout custody and examination.
SHA-256 is widely used because it provides a strong and commonly recognized integrity check. Nevertheless, prosecutors should not present the mere use of SHA-256 as the source of admissibility. The prosecution must still establish authentication, relevance, proper custody, and compliance with the applicable warrant and evidence rules.
What Does the Cybercrime Prevention Act Require?
Section 15 of the Cybercrime Prevention Act authorizes law enforcement authorities, when a search and seizure warrant has been properly issued, to secure a computer system or storage medium, make and retain a copy of computer data, maintain the integrity of the data, conduct forensic analysis, and render data inaccessible or remove it when authorized by the law and warrant (R.A. No. 10175).
The law also permits officers to require a person with knowledge of the computer system and its protective measures to provide reasonable information necessary to conduct the search, seizure, and examination.
The Supreme Court explained that these duties supplement, rather than replace, existing search and seizure procedures. In “Disini, Jr., et al. v. The Secretary of Justice, et al.”, G.R. No. 203335, February 11, 2014, the Supreme Court characterized Section 15 as a provision intended to ensure the proper collection, preservation, and use of computer systems and data seized under a court warrant.
What Does the Rule on Cybercrime Warrants Add?
The Rule on Cybercrime Warrants supplies detailed procedures for the preservation, disclosure, interception, search, seizure, examination, custody, and destruction of computer data (Rule on Cybercrime Warrants, A.M. No. 17-11-03-SC).
It recognizes both on-site and off-site forensic examination. An on-site examination obtains the computer data at the place of the search without bringing the device outside the premises. An off-site examination permits law enforcement authorities, under a warrant to search, seize, and examine computer data, to bring the device or relevant part of the computer system to another location for forensic examination.
The Rule also recognizes the importance of forensic images and hash values in showing that the data examined corresponds to the data seized. The examiner should document the device, the storage medium, the forensic image, the hash value, and every significant step taken during the examination.
What Must Be Included in the Initial Return?
Within ten days from the issuance of a warrant to search, seize, and examine computer data, authorized law enforcement officers must submit an initial return containing information prescribed by the Rule on Cybercrime Warrants (Rule on Cybercrime Warrants, A.M. No. 17-11-03-SC).
The initial return must include, among other matters:
- A list and detailed identification of the seized devices, including the make, brand, serial number, or other available identifier;
- The hash value of the computer data, seized computer device, or computer system containing the data;
- A statement on whether a forensic image was made on-site and, if not, the reasons for making it off-site;
- A statement on whether the search was conducted on-site and, if not, the reasons for conducting it off-site;
- Details of any interception conducted during implementation of the warrant, including the hash values of intercepted communications or data; and
- A chronological account of the actions taken from arrival at the place of seizure until the seized items were stored and secured for examination.
The return should not merely state that a hash value was generated. It should identify what was hashed, which algorithm was used, when the hash was calculated, and who performed or verified the calculation.
How Should Investigators Clone a Seized Hard Drive?
A defensible forensic acquisition should be conducted through a documented sequence that protects the original device and preserves a verifiable record of the examination.
- Identify the device. Record the device type, manufacturer, model, serial number, storage capacity, condition, and other distinguishing characteristics.
- Secure the original medium. Prevent unauthorized access, remote alteration, or accidental modification of the device.
- Use a forensic acquisition method. Where appropriate, use a write blocker or equivalent method to prevent data from being written to the original storage medium.
- Create the forensic image. Make an exact bit-by-bit image of the relevant storage medium.
- Calculate the hash value. Generate and record the hash of the original data or forensic image, identifying the algorithm used.
- Verify the image. Calculate the hash of the completed image and compare it with the acquisition value.
- Examine the working copy. Conduct analysis on a verified forensic copy rather than on the original device whenever possible.
- Document every transfer and access. Record the persons who handled the device or data, the dates and times of access, the purpose of access, and the storage location.
The exact technical method may vary depending on the device and the warrant. The legal objective remains the same: preserve the original data, create a reliable forensic copy, and maintain a record sufficient to show that the evidence was not altered.
What Is the Importance of Hash Verification?
Hash verification assists the prosecution in answering a common tampering defense: that the files presented in court were inserted, modified, or fabricated after the seizure.
For example, a seized hard drive may contain a series of allegedly fraudulent emails. If the forensic image was created under documented procedures, assigned a hash value, placed in secure custody, and later verified with the same hash value, the prosecution can argue that the examined email data came from the seized device and remained unchanged.
The hash value does not eliminate the need for testimony. A forensic examiner should explain the acquisition process, the software or tools used, the algorithm applied, the results obtained, and the manner in which the image and original device were secured.
How Must Digital Evidence Be Deposited and Kept?
Upon the filing of the appropriate return, the computer data subject of the warrant must be deposited in a sealed package with the court that issued the warrant. The deposit must be accompanied by a verified inventory and an affidavit of the authorized law enforcement officer (Rule on Cybercrime Warrants, A.M. No. 17-11-03-SC).
The affidavit should state the date and time of the disclosure, interception, search, seizure, or examination; the particulars of the computer data and its hash value; the manner by which the data was obtained; the seized items related to the data; and the names and positions of law enforcement personnel who had access to the data before its deposit with the court.
These requirements create a documentary chain of custody. They also give the accused an opportunity to examine whether the evidence was properly acquired, preserved, and handled.
Why Chain of Custody Still Matters
A matching hash value is important but does not replace the chain of custody. An examiner may generate a matching hash for a forensic image, yet the prosecution may still face questions about whether the correct device was seized, whether the image came from that device, whether the original was protected from alteration, or whether unauthorized persons had access to the evidence.
A complete chain of custody should identify:
- The officer who seized the device;
- The person who transported and stored it;
- The examiner who created the forensic image;
- The persons who accessed or analyzed the image;
- The location and condition of the original and working copies; and
- The dates, times, purposes, and results of significant forensic activity.
The Rule on Cybercrime Warrants specifically requires the identification of law enforcement authorities who had access to the data before its deposit with the court. Failure to maintain these records may provide the defense with grounds to challenge the authenticity, integrity, or evidentiary weight of the digital material.
What If the Agency Retains a Copy?
As a general rule under the Cybercrime Prevention Act, computer data obtained through a warrant is subject to the statutory rules on deposit and custody. Special statutes may create limited exceptions.
For OSAEC and CSAEM cases, law enforcement agencies may retain a copy of the result of digital forensic examinations when a cybercrime warrant has been issued. The retained data may be used to identify additional child victim-survivors and suspects and to support further investigation and case build-up. If the examination shows a nexus abroad, the result may also be provided to foreign law enforcement authorities in accordance with applicable cooperation arrangements (R.A. No. 11930; IRR of R.A. No. 11930).
This special authority does not eliminate the duty to deposit the digital forensic examination with the court or to certify that a duplicate copy was made and retained in accordance with the governing law.
Can a Screenshot Substitute for a Forensic Image?
Usually, a screenshot proves less than a properly acquired forensic image. A screenshot may show the visible appearance of a message, account, or webpage, but it may not establish the source device, original metadata, complete conversation, deleted portions, or whether the displayed material was altered.
The National Privacy Commission has emphasized that screenshots are electronic documents and must still be authenticated and shown to have been duly executed. In “CLA v. GBO”, NPC Case No. 22-046, March 24, 2025, the Commission declined to give evidentiary weight to screenshots of Viber messages because they lacked sufficient proof of authenticity and due execution under the Rules on Electronic Evidence.
This does not mean that a screenshot can never be admitted. It means that the offering party should support it through competent testimony, device extraction, metadata, account records, admissions, or other circumstances establishing authenticity and integrity.
Common Tampering Defenses
The defense may challenge digital evidence on several grounds:
- The device was not properly identified or was not shown to be the device actually seized;
- The original storage medium was accessed or altered before imaging;
- No forensic image was created, or the image was incomplete;
- The prosecution failed to identify the hash algorithm or record the hash value;
- The hash value changed during custody or examination;
- The evidence was handled by persons not identified in the custody records;
- The forensic examiner cannot explain the acquisition or analysis process; or
- The offered file lacks authentication under the Rules on Electronic Evidence.
The prosecution should address these issues before trial rather than waiting for the defense to expose gaps during cross-examination.
How Should Prosecutors Present Hash Evidence?
The prosecutor should present the technical evidence in a sequence that a nontechnical judge or fact-finder can understand:
- Identify the device and explain how it was seized;
- Establish that the warrant authorized the search, seizure, and examination;
- Explain how the original device was protected from alteration;
- Describe the creation of the forensic image;
- State the hash algorithm and resulting hash value;
- Show that the forensic image was verified;
- Explain that the analysis was conducted on the verified copy; and
- Connect the extracted files or records to the elements of the charged offense.
The presentation should avoid treating the hash value as a technical talisman. A hash value supports integrity; it does not independently establish authorship, intent, identity, or the truth of the contents.
Illustrative Scenario
Suppose investigators seize a laptop under a warrant for suspected computer-related fraud. The investigator records the laptop’s serial number, places it in secure custody, and creates a forensic image using a documented acquisition process. The investigator calculates a SHA-256 hash for the image and records the result in the return. A second examiner later verifies the image and obtains the same hash value.
The second examiner recovers deleted spreadsheets and emails from the verified image. At trial, the first examiner explains the seizure and imaging process, while the second examiner explains the verification and recovery process. The prosecution also presents testimony linking the user account and recovered communications to the accused.
In this scenario, the matching hash values support the integrity of the forensic image. The prosecution must still prove that the laptop belonged to or was controlled by the accused, that the recovered material was relevant, and that the evidence satisfies the elements of the offense charged.
Practical Checklist for Law Enforcement
Before presenting cloned hard-drive evidence in court, the investigative team should confirm the following:
- The device and storage medium are specifically identified;
- The warrant covers the search, seizure, and examination conducted;
- The original device was protected against alteration;
- A forensic image was created and its scope is recorded;
- The hash algorithm and hash value are documented;
- The image was independently verified where appropriate;
- The original and copies are stored securely;
- Every person with access is identified;
- The initial or final return contains the required information; and
- The forensic examiner can explain the process in clear, nontechnical terms.
Conclusion
Forensic imaging and cryptographic hash values are central tools for preserving the integrity of digital evidence in cybercrime cases. A forensic image creates a reliable working copy of the seized storage medium, while the hash value helps demonstrate that the copy remained unchanged.
Philippine law requires law enforcement to maintain the integrity of computer data and to document the seizure, examination, custody, and deposit of digital evidence. SHA-256 may be an appropriate and commonly used algorithm, but the controlling legal concern is not the name of the algorithm alone. It is whether the prosecution can establish a reliable, documented, and verifiable process from seizure to courtroom presentation.
Law enforcement officers should therefore record the device identifiers, acquisition method, hash algorithm, hash values, custody history, examiner access, and court deposit in a complete forensic record. Prosecutors should present the hash evidence together with authentication testimony and proof connecting the recovered data to the accused and the charged offense.
About Nicolas and De Vega Law Offices
Nicolas and de Vega Law Offices is a full-service law firm in the Philippines. You may visit us at the 16th Flr., Suite 1607 AIC Burgundy Empire Tower, ADB Ave., Ortigas Center, 1605 Pasig City, Metro Manila, Philippines. You may also call us at +632 84706126, +632 84706130, +632 84016392 or e-mail us at [email protected]. Visit our website https://ndvlaw.com.

