Deep fake detection is becoming increasingly important as the sophistication of AI-generated content, such as manipulated images, videos, and text, continues to grow. Traditional detection methods often analyze visual artifacts, facial inconsistencies, or audio patterns. However, these approaches can struggle to keep up with rapidly evolving deep fake technologies.
This repository provides a solution for detecting tampering or manipulation in AI-generated content by using HexaEight Signature Verification. The approach involves creating a signed JSON Web Token (JWT) based on a hash of the AI-generated message, which allows end users to verify the authenticity and integrity of the content.
- Content Generation: AI generates a piece of content (e.g., text, audio, video).
- Hash Creation: A SHA512 hash of the generated content is computed.
- JWT Signing: The hash is used to create a signed JWT using HexaEight’s Patent Pending Encryption Technology
- JWT Association: The signed JWT is stored alongside the generated content.
- Verification: End users can decode the JWT and verify the hash against the computed hash of the received content. If the two hashes match, the content is verified as unmodified.
This method provides a robust layer of security, ensuring that any alterations to AI-generated content are detectable, thereby reducing the risk of deep fakes.
- Content Integrity: Ensure that AI-generated content has not been tampered with after creation.
- JWT Signing: Use a secure, verifiable signature to associate content with its original hash.
- Hash Verification: Compare the original content hash with the hash of the received content for integrity checking.
-
dotnet-script tool to run
.csx
scriptsdotnet tool install -g dotnet-script
-
NuGet packages referenced in the scripts:
#r "nuget: HexaEightJWTLibrary, *" #r "nuget: Newtonsoft.Json, *"`
-
Clone this repository.
-
Install the
dotnet-script
tool, which is required to run.csx
scripts:dotnet tool install -g dotnet-script
-
Set the required environment variables before running the scripts.
Use the CreateJWTForMessages.csx
script to generate a signed JWT for any AI-generated message.
dotnet script CreateJWTForMessages.csx <end-user-email-id> <ai-generated-message>
Example:
dotnet script CreateJWTForMessages.csx "user@example.com" "AI-generated video frame data"
This script computes a hash of the AI-generated message, signs it using HexaEightJWTLibrary, and outputs the signed JWT as JSON.
Use the VerifyMessageIntegrity.csx
script to verify the integrity of any AI-generated content by comparing the original and received hashes.
dotnet script VerifyMessageIntegrity.csx '<signed-json-message>'
This script extracts the signed JWT, decodes it, and verifies the message’s integrity by comparing the message hash.
- AI Content Creation: An AI model generates a video frame or text.
- JWT Creation: The content's hash is used to create a signed JWT using HexaEight's secure token service.
- Content Sharing: The generated content and its signed JWT are shared with others.
- Content Verification: Recipients of the content can use the
VerifyMessageIntegrity.csx
script to check if the content has been altered by verifying the content hash.
By binding the original content to a signed JWT, any modification of the content will result in a hash mismatch. This mismatch will immediately signal that the content is no longer authentic. This method provides an additional layer of trust and security, ensuring that deep fakes or tampered content cannot be easily passed off as genuine.
In the below code, we are asking a question to Gemini and converting the response to base64 that is passed to the CreateJWTForMessage.csx for creating a Signed JWT of the response.
epadmin@hexa8cinterpreter:~/gemini$ SIGNED_JWT="$(dotnet script CreateJWTForMessage.csx "bob@anyemail.chat" "$(curl -s "https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=$GOOGLE_API_KEY" -H 'Content-Type: application/json' -X POST -d '{"contents":[{"parts":[{"text":"What is insulin resistance in diabites"}]}]}' | base64 -w 0)" --no-cache)"
The contents of the Signed JWT is shown below
epadmin@hexa8cinterpreter:~/gemini$ echo $SIGNED_JWT
{
"Msg ID":"1727552365203",
"message":"ewogICJjYW5kaWRhdGVzIjogWwogICAgewogICAgICAiY29udGVudCI6IHsKICAgICAgICAicGFydHMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJ0ZXh0IjogIkluc3VsaW4gcmVzaXN0YW5jZSBpcyBhIGNvbmRpdGlvbiBpbiB3aGljaCB0aGUgYm9keSdzIGNlbGxzIGRvIG5vdCByZXNwb25kIG5vcm1hbGx5IHRvIHRoZSBob3Jtb25lIGluc3VsaW4uIEluc3VsaW4gaXMgYSBob3Jtb25lIHRoYXQgaGVscHMgZ2x1Y29zZSAoc3VnYXIpIGdldCBmcm9tIHRoZSBibG9vZHN0cmVhbSBpbnRvIGNlbGxzIGZvciBlbmVyZ3kuIFdoZW4gY2VsbHMgYXJlIGluc3VsaW4gcmVzaXN0YW50LCBnbHVjb3NlIGJ1aWxkcyB1cCBpbiB0aGUgYmxvb2RzdHJlYW0gYW5kIGNhbiBsZWFkIHRvIHR5cGUgMiBka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VsIgogICAgICB9LAogICAgICAiZmluaXNoUmVhc29uIjogIlNUT1AiLAogICAgICAiaW5kZXgiOiAwLAogICAgICAic2FmZXR5UmF0aW5ncyI6IFsKICAgICAgICB7CiAgICAgICAgICAiY2F0ZWdvcnkiOiAiSEFSTV9DQVRFR09SWV9TRVhVQUxMWV9FWFBMSUNJVCIsCiAgICAgICAgICAicHJvYmFiaWxpdHkiOiAiTkVHTElHSUJMRSIKICAgICAgICB9LAogICAgICAgIHsKICAgICAgICAgICJjYXRlZ29yeSI6ICJIQVJNX0NBVEVHT1JZX0hBVEVfU1BFRUNIIiwKICAgICAgICAgICJwcm9iYWJpbGl0eSI6ICJORUdMSUdJQkxFIgogICAgICAgIH0sCiAgICAgICAgewogICAgICAgICAgImNhdGVnb3J5IjogIkhBUk1fQ0FURUdPUllfSEFSQVNTTUVOVCIsCiAgICAgICAgICAicHJvYmFiaWxpdHkiOiAiTkVHTElHSUJMRSIKICAgICAgICB9LAogICAgICAgIHsKICAgICAgICAgICJjYXRlZ29yeSI6ICJIQVJNX0NBVEVHT1JZX0RBTkdFUk9VU19DT05URU5UIiwKICAgICAgICAgICJwcm9iYWJpbGl0eSI6ICJORUdMSUdJQkxFIgogICAgICAgIH0KICAgICAgXQogICAgfQogIF0sCiAgInVzYWdlTWV0YWRhdGEiOiB7CiAgICAicHJvbXB0VG9rZW5Db3VudCI6IDcsCiAgICAiY2FuZGlkYXRlc1Rva2VuQ291bnQiOiAyMDUsCiAgICAidG90YWxUb2tlbkNvdW50IjogMjEyCiAgfQp9Cg==",
"signedjwt":"eyJhbGciOiJIUzI1NiIsImtpZCI6IkFiOVZVN3lNcFh2VU9XRXBEVm5ZSENTV0dWQjRKa0dUNXlYeWVYNTNKa0dHVHhHcDl3UnZvME1UYzA0bWI4a1pvSWlsQ0U2VGRMdWJvNFlHcVk0dVU2SlFHM24rSEtGOWU0VXhxS0UwWkg4TlhFTWFjVDVUYWgyczFnTjFaU3NyOWtMK241MW85TGhnYmdKYkowT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Q0MmFyaUdKWlBWU0VYTHFPMmxDaVVFQ3B2bjY3TmdWcUVKYlBkVGh6d1JRd1JYUko0TWpvdVNOMmFKTlZtMVBFRHlrYnN0UUlWYUhhaFpOZ01rNWRBbGxFaHE3R0dkWE9pVWFsbmg5Um9sQmtjelNBU0dJSzBrakFUYzR1cmthaWtaaERmRGU4UUdhM1cxdXVuRWN4QU5oZE8wdHh2Y0NzWVFHcmNVS29DbWt3SFo5TDZncVJBS05Fa1ZQNlVLSlFGREtjYnlDMXVoZ0NSYVN3T0xuQWoxSTFIRm1JdHp1SVBqNWFSSXFqV3BFeWN5YWl1a0ZpcG02RldGMENSVlZPVXF6dkJqeHl3cGRXTWVoSTIxQ2lVQT09In0.cKIKx0LyAwBVO_BxD5HlQRg2DndSJQxkJYmBoW1XL9U"
}
In the subsequent step, we utilize the VerifyMessageIntegrity code to confirm that the received JSON message originates from Gemini AI. Upon successful verification, the contents are decoded to end user. This process guarantees that the AI-generated response remains unaltered.
Additionally, this method enables us to identify the intended recipient of the AI content. The SHA512 hash of the user is included in the signed message, facilitating content tracking and assisting in the fight against misinformation that users may exploit for harmful purposes.
epadmin@hexa8cinterpreter:~/gemini$ dotnet script VerifyMessageIntegrity.csx "$SIGNED_JWT" --no-cache && MESSAGE=$(echo $SIGNED_JWT | jq -r '.message') && echo $MESSAGE | base64 --decode
Message ID : 1727552365203
Message: ewogICJjYW5kaWRhdGVzIjogWwogICAgewogICAgICAiY29udGVudCI6IHsKICAgICAgICAicGFydHMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJ0ZXh0IjogIkluc3VsaW4gcmVzaXN0YW5jZSBpcyBhIGNvbmRpdGlvbiBpbiB3aGljaCB0aGUgYm9keSdzIGNlbGxzIGRvIG5vdCByZXNwb25kIG5vcm1hbGx5IHRvIHRoZSBob3Jtb25lIGluc3VsaW4uIEluc3VsaW4gaXMgYSBob3Jtb25lIHRoYXQgaGVscHMgZ2x1Y29zZSAoc3VnYXIpIGdldCBmcm9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CwgYW5kIGdldHRpbmcgcmVndWxhciBleGVyY2lzZS4gTWVkaWNhdGlvbnMgbWF5IGFsc28gYmUgcHJlc2NyaWJlZCB0byBoZWxwIGxvd2VyIGJsb29kIGdsdWNvc2UgbGV2ZWxzLiIKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJyb2xlIjogIm1vZGVsIgogICAgICB9LAogICAgICAiZmluaXNoUmVhc29uIjogIlNUT1AiLAogICAgICAiaW5kZXgiOiAwLAogICAgICAic2FmZXR5UmF0aW5ncyI6IFsKICAgICAgICB7CiAgICAgICAgICAiY2F0ZWdvcnkiOiAiSEFSTV9DQVRFR09SWV9TRVhVQUxMWV9FWFBMSUNJVCIsCiAgICAgICAgICAicHJvYmFiaWxpdHkiOiAiTkVHTElHSUJMRSIKICAgICAgICB9LAogICAgICAgIHsKICAgICAgICAgICJjYXRlZ29yeSI6ICJIQVJNX0NBVEVHT1JZX0hBVEVfU1BFRUNIIiwKICAgICAgICAgICJwcm9iYWJpbGl0eSI6ICJORUdMSUdJQkxFIgogICAgICAgIH0sCiAgICAgICAgewogICAgICAgICAgImNhdGVnb3J5IjogIkhBUk1fQ0FURUdPUllfSEFSQVNTTUVOVCIsCiAgICAgICAgICAicHJvYmFiaWxpdHkiOiAiTkVHTElHSUJMRSIKICAgICAgICB9LAogICAgICAgIHsKICAgICAgICAgICJjYXRlZ29yeSI6ICJIQVJNX0NBVEVHT1JZX0RBTkdFUk9VU19DT05URU5UIiwKICAgICAgICAgICJwcm9iYWJpbGl0eSI6ICJORUdMSUdJQkxFIgogICAgICAgIH0KICAgICAgXQogICAgfQogIF0sCiAgInVzYWdlTWV0YWRhdGEiOiB7CiAgICAicHJvbXB0VG9rZW5Db3VudCI6IDcsCiAgICAiY2FuZGlkYXRlc1Rva2VuQ291bnQiOiAyMDUsCiAgICAidG90YWxUb2tlbkNvdW50IjogMjEyCiAgfQp9Cg==
{
"Signed By": "gemini.hexaeight.com",
"HashAlgorithm": "SHA512",
"Contact : ": "admin@gemini.hexaeight.com",
"User : ": "3a60b66d219abe487b859801a704f52aaf78d5bac1fa80c6e2619d591ee424086926df610ea89430b1d38000608d80c99c78c3f8ba2374188cb5d621f110acf6",
"MsgId : ": 1727552365203,
"iss": "gemini.hexaeight.com",
"aud": "3a60b66d219abe487b859801a704f52aaf78d5bac1fa80c6e2619d591ee424086926df610ea89430b1d38000608d80c99c78c3f8ba2374188cb5d621f110acf6.gemini.hexaeight.com",
"iat": 28792540,
"nbf": 1727552373,
"exp": 29317530,
"signingkeyhash": "v0vAy+eHOddRZRiKz8kTbvkLy7Aaas7GpmYlXFIF8xQLKbceV+nwRL0ak9CGTW9GFahLmhZy3Ct/U20Dng9npA=="
}
Note : The Message ID in the JSON message should match with the decoded JSON properties above
{
"candidates": [
{
"content": {
"parts": [
{
"text": "Insulin resistance is a condition in which the body's cells do not respond normally to the hormone insulin. Insulin is a hormone that helps glucose (sugar) get from the bloodstream into cells for energy. When cells are insulin resistant, glucose builds up in the bloodstream and can lead to type 2 diabetes.\n\nIn people with type 2 diabetes, the body's cells do not respond properly to insulin, and glucose builds up in the bloodstream. This can lead to a number of complications, including:\n\n* Heart disease\n* Stroke\n* Kidney disease\n* Nerve damage\n* Eye damage\n\nInsulin resistance is a common problem in people with obesity and overweight. Other risk factors for insulin resistance include:\n\n* A family history of type 2 diabetes\n* Being physically inactive\n* Eating a diet high in saturated fat and cholesterol\n\nTreatment for insulin resistance typically includes lifestyle changes, such as losing weight, eating a healthy diet, and getting regular exercise. Medications may also be prescribed to help lower blood glucose levels."
}
],
"role": "model"
},
"finishReason": "STOP",
"index": 0,
"safetyRatings": [
{
"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
"probability": "NEGLIGIBLE"
},
{
"category": "HARM_CATEGORY_HATE_SPEECH",
"probability": "NEGLIGIBLE"
},
{
"category": "HARM_CATEGORY_HARASSMENT",
"probability": "NEGLIGIBLE"
},
{
"category": "HARM_CATEGORY_DANGEROUS_CONTENT",
"probability": "NEGLIGIBLE"
}
]
}
],
"usageMetadata": {
"promptTokenCount": 7,
"candidatesTokenCount": 205,
"totalTokenCount": 212
}
}
Absolutely not! In fact, the JSON Web Message can be shared openly with anyone. For example, here's a link to a .NET Fiddle that uses the same verifyMessageIntegrity code in the browser to decode AI-generated message content. This feature of HexaEight Signature Validation demonstrates how our technology can future-proof communication between machines, users, and AI, ensuring a safe and secure communication environment