in ransomware/artifact.lua [252:310]
function utils.PrintExtensionTables(processData)
utils.DebugLog('=================')
utils.DebugLog('Create Extensions')
for k, v in pairs(processData.createExtensions) do
utils.DebugLog('*** ' .. k)
for _, v2 in pairs(v) do
utils.DebugLog(v2.operation .. ' | ' .. string.sub(v2.entropy, 1, 4) .. ' | ' .. v2.alertScore .. ' | ' ..
string.sub(v2.filePath, 1, 200))
end
end
utils.DebugLog('=================')
utils.DebugLog('Modify Extensions')
for k, v in pairs(processData.modifyExtensions) do
utils.DebugLog('*** ' .. k)
for _, v2 in pairs(v) do
utils.DebugLog(v2.operation .. ' | ' .. string.sub(v2.entropy, 1, 4) .. ' | ' .. v2.alertScore .. ' | ' ..
string.sub(v2.filePath, 1, 200))
end
end
utils.DebugLog('=================')
utils.DebugLog('Delete Extensions')
for k, v in pairs(processData.deleteExtensions) do
utils.DebugLog('*** ' .. k)
for _, v2 in pairs(v) do
utils.DebugLog(v2.operation .. ' | ' .. string.sub(v2.entropy, 1, 4) .. ' | ' .. v2.alertScore .. ' | ' ..
string.sub(v2.filePath, 1, 200))
end
end
utils.DebugLog('=================')
utils.DebugLog('Rename Extensions')
for k, v in pairs(processData.renameExtensions) do
utils.DebugLog('*** ' .. k)
for _, v2 in pairs(v) do
utils.DebugLog(v2.operation .. ' | ' .. string.sub(v2.entropy, 1, 4) .. ' | ' .. v2.alertScore .. ' | ' ..
string.sub(v2.filePath, 1, 200))
end
end
utils.DebugLog('=================')
utils.DebugLog('Overwrite Extensions')
for k, v in pairs(processData.overwriteExtensions) do
utils.DebugLog('*** ' .. k)
for _, v2 in pairs(v) do
utils.DebugLog(v2.operation .. ' | ' .. string.sub(v2.entropy, 1, 4) .. ' | ' .. v2.alertScore .. ' | ' ..
string.sub(v2.filePath, 1, 200))
end
end
utils.DebugLog('=================')
utils.DebugLog('headerMismatchExtensions')
for k, v in pairs(processData.headerMismatchExtensions) do
utils.DebugLog('*** ' .. k)
end
utils.DebugLog('=================')
utils.DebugLog('entropyMismatchExtensions')
for k, v in pairs(processData.entropyMismatchExtensions) do
utils.DebugLog('*** ' .. k .. ' : ' .. v)
end
end