function GetGlobals()

in ransomware/artifact.lua [2131:2149]


function GetGlobals()
    local globalsTable = {}
    globalsTable.clear_config = true
    globalsTable.threshold = globals.PROCESS_EVENT_THRESHOLD * 1.0
    globalsTable.regexes = globals.regexIgnorePaths

    local ignoreExtensions = {}

    for k, v in pairs(globals.extensionMap) do
        if globals.EXTENSION_IGNORED == v.category then
            utils.DebugLog('IGNORED: ' .. k)
            table.insert(ignoreExtensions, k)
        end
    end

    globalsTable.strings = ignoreExtensions
    lemit(globalsTable)
    return true
end