LOG OUTPUT DEVICE, LOG OUTPUT METHOD, AND LOG OUTPUT PROGRAM
A log output device includes processing circuitry configured to perform a hook for a predetermined event relating to a log message and calculate a hash value from the log message for each hook, provide an encrypted digital signature to the hash value, and output the log message and the hash value to which the digital signature is provided.
1 . A log output device comprising:
processing circuitry configured to:
perform a hook for a predetermined event relating to a log message and calculate a hash value from the log message for each hook;
provide an encrypted digital signature to the hash value; and
output the log message and the hash value to which the digital signature is provided.
2 . The log output device according to claim 1 , wherein the processing circuitry is further configured to:
calculates calculate the hash value by updating a hash value when the log message is newly generated in a predetermined secure element, and
provide the digital signature obtained by encrypting the hash value using a private key held in the secure element.
3 . The log output device according to claim 1 , wherein the processing circuitry is further configured to perform a hook for a file open event or a file append event relating to the log message based on an operating system (OS) interface which describes a virtual file system and calculate the hash value for each hook.
4 . The log output device according to claim 1 , wherein the processing circuitry is further configured to use a system call for monitoring file system events to perform a hook for a file open event relating to the log message and calculate the hash value for each hook.
5 . The log output device according to claim 1 , wherein the processing circuitry is further configured to verify integrity of the log message using the log message and the hash value to which the digital signature is provided.
6 . The log output device according to claim 5 , wherein the processing circuitry is further configured to verify integrity of the log message when detecting a file close event relating to the log message.
7 . A log output method performed using a log output device, comprising:
performing a hook for a predetermined event relating to a log message and calculating a hash value from the log message for each hook;
providing an encrypted digital signature to the hash value; and
outputting the log message and the hash value to which the digital signature is provided.
8 . A non-transitory computer-readable recording medium storing therein a log output program that causes a computer to execute a process comprising:
performing a hook for a predetermined event relating to a log message and calculating a hash value from the log message for each hook;
providing an encrypted digital signature to the hash value; and
outputting the log message and the hash value to which the digital signature is provided.