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.
ponteiro_esquerdo, -, -, X , -, -, -, ponteiro_direito
- 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.
- 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.
- 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.
$registro = [1, 2, 0, 5, 0, 2, 4, 3, 3, 3];
$malware = 1, 0, 0, 5, 0, 0, 0, 3, 3, 0
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
https://www.testdome.com/certificates/6fc0279bd34b4a05a64c333058514fcf
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.
The challenge consists of processing a sequence of numbers using a sliding window, applying rules to modify the values based on specific comparisons.
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.
- 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.
- 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.
- 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.
$register = [1, 2, 0, 5, 0, 2, 4, 3, 3, 3];
$malware = [1, 0, 0, 5, 0, 0, 0, 3, 3, 0];
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
https://www.testdome.com/certificates/6fc0279bd34b4a05a64c333058514fcf