Vikman Fernandez-Castro

Results 128 comments of Vikman Fernandez-Castro

Possibly related to #18955. We need to **block** this issue until we receive the steps to reproduce the problem locally, or access to an environment where the problem can be...

## Reproducing the issue I think that the bug may be at `wdb_create_agent_db2()`: when accessing an agent's database for the first time, Wazuh-DB needs to create it from the template...

Reopening https://github.com/wazuh/wazuh-qa/issues/5309. The issue above blocks this one, until we get access to an environment having the problem. **Update: unblocked**.

## Diagnostics ### Logs ossec.log | wazuh-db ``` 2024/05/08 08:06:36 wazuh-db: INFO: Started (pid: 65306). 2024/05/08 08:06:36 wazuh-db: INFO: Created Global database backup "backup/db/global.db-backup-2024-05-08-08:06:36.gz" 2024/05/08 08:06:57 wazuh-db: INFO: (1225): SIGNAL...

# Issue reproduced ## How to reproduce 1. Install a 4.7.5 manager. 2. Deploy as many agents as possible. 3. Terminate and re-launch _wazuh-db_ **while it's creating new databases**. ###...

## ThreadSanitizer report 1 Data race 1 ``` WARNING: ThreadSanitizer: data race (pid=25816) Write of size 8 at 0x7b7000010768 by thread T10: #0 wdb_pool_leave wazuh_db/wdb_pool.c:76 (wazuh-db-ts+0x5c2c2) #1 wdb_commit_old wazuh_db/wdb.c:938 (wazuh-db-ts+0x1b792)...

# Bug cause addressed ## Rationale When _wazuh-db_ starts, it deletes the template to handle upgrades. As new agents connect, the template is copied. If the template doesn't exist, it...

@JorgeMarinoDev Agree, it's related to the previous issue but it's not the cause. ## PoC files ### Open a file #### With `SHARE_DELETE` flag open-delete.c ``` c #include #include int...

Hi @Glamdring, Thanks for opening this issue. I've also read your post [Discovering an OSSEC/Wazuh encryption issue](https://techblog.bozho.net/discovering-an-ossec-wazuh-encryption-issue/), that's a comprehensive explanation of the encryption used here and the points we...