Skip to content

fabriciopheaker/Malware-Analysis-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Malware-Analysis-Simulation

Este repositório contém a solução para um desafio de análise de dados que simula as ações de um malware ,feito em php, sobre arquivos de registros numéricos. O desafio foi proposto pelo TestDome. O objetivo é identificar e modificar valores em uma sequência de números conforme regras específicas, semelhante ao comportamento de um malware.

Descrição do Problema O desafio consiste em processar uma sequência de números utilizando uma janela deslizante, aplicando regras para modificar os valores com base em comparações específicas.

Padrão da Janela Deslizante:

ponteiro_esquerdo, -, -, X , -, -, -, ponteiro_direito

Regras da Simulação:

  1. Se o valor na posição ponteiro_esquerdo ou ponteiro_direito for maior ou igual ao valor na posição X, o valor em X é substituído por 0.
  2. Se o valor no deslocamento de ponteiro_esquerdo ou ponteiro_direito estiver fora dos limites da sequência, o valor em X será comparado apenas com o outro valor existente.
  3. O registro é processado em dois estágios: -> Primeiramente, todas as posições que devem ser definidas como 0 são localizadas, usando os valores originais para comparação. -> Somente após todas as posições serem identificadas, elas são definidas como 0.

Exemplo de Registro Numérico Original:

$registro = [1, 2, 0, 5, 0, 2, 4, 3, 3, 3];

Exemplo do Registro sobre o efeito do Malware:

$malware = 1, 0, 0, 5, 0, 0, 0, 3, 3, 0

Autor

Este repositório foi criado por Fabricio Pheaker para apresentar a solução do desafio de simulação de análise de malware proposto pelo TestDome. Eu desenvolvi e implementei a solução que simula o comportamento do malware conforme descrito.

Fabricio Pheaker - Meu LinkedIn - Meu GitHub

Certificado:

https://www.testdome.com/certificates/6fc0279bd34b4a05a64c333058514fcf


Version English

Malware Analysis Simulation

This repository contains the solution for a data analysis challenge that simulates the actions of a malware on numerical log files. The challenge was proposed by TestDome. The objective is to identify and modify values in a sequence of numbers according to specific rules, similar to the behavior of malware.

Problem Description

The challenge consists of processing a sequence of numbers using a sliding window, applying rules to modify the values based on specific comparisons.

Sliding Window Pattern

left_pointer, -, -, X, -, -, -, right_pointer

X: The current value being analyzed. left_pointer: The value positioned at a constant distance to the left of X. right_pointer: The value positioned at a constant distance to the right of X.

Simulation Rules

  1. If the value at the left_pointer or right_pointer position is greater than or equal to the value at the X position, the value at X is replaced by 0.
  2. If the value at the offset of left_pointer or right_pointer is out of bounds, the value at X is compared only with the other existing value.
  3. The sequence is processed in two stages: -> First, all positions that should be set to 0 are identified using the original values for comparison. -> Only after all positions have been identified are they set to 0.

Example of Original Numerical Log

$register = [1, 2, 0, 5, 0, 2, 4, 3, 3, 3];

Example of Log Under the Effect of Malware

$malware = [1, 0, 0, 5, 0, 0, 0, 3, 3, 0];

Author

This repository was created by Fabricio Pheaker to present the solution to the malware analysis simulation challenge proposed by TestDome. I developed and implemented the solution that simulates the malware's behavior as described. Fabricio Pheaker - My LinkedIn - My GitHub

Certificate

https://www.testdome.com/certificates/6fc0279bd34b4a05a64c333058514fcf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages