This is weird, so I am trying to compile this code:
#include <stdio.h>
#include <stdlib.h>
typedef struct {
int sz;
unsigned char sequence[];
} morsechar;
int main(void) {
morsechar *mc = malloc(sizeof *mc + 5 * (sizeof *mc->sequence));
mc->sz = 5;
for(size_t i = 0; i < 5; i++) {
mc->sequence[i] = i;
}
for(size_t i = 0; i < mc->sz; i++) {
printf("%d\n", mc->sequence[i]);
}
free(mc);
}
/*
Output:
0
1
2
3
4
*/
And compiled it with
gcc -o test.exe -Os test.c
so nothing fancy except for size optimization. Malwarebytes instantly quarantined it, and out of curiosity I uploaded it to virustotal and It's messy.
But anyway, before I was api throttled, It said under the relations tab that it was contacting 23.216.147.64, which is apparently owned by akamai, and in addition, the virustotal report mentioned cobaltstrike, which came up while searching the akamai IP. Is my gcc and/or my std libraries compromised? Are all the new AI powered virus scanners overreacting? Anyone know what's up?