Habr•October 24, 2026•🇷🇺Translated from Russian

Home Lab Guide: Deploying Active Directory, Windows 7 Client and ELK Stack for Security Logging

A comprehensive home-lab tutorial demonstrates how to build a miniature Active Directory environment integrated with the ELK stack for centralized security logging. The project uses VirtualBox with a custom NAT network named AD-Lab on the 192.168.100.0/24 subnet.

The stand consists of three virtual machines: DC01 running Windows Server 2019 as the domain controller, DNS and DHCP server; WIN7-PC01 running Windows 7 as a domain-joined client; and an Ubuntu Server host named elk that runs Elasticsearch, Logstash and Kibana 9.4.2.

Readers are guided through renaming the server, assigning a static IP, installing the AD-Domain-Services role and promoting the forest corp.lab. Subsequent sections detail DHCP scope creation, OU structure under OU=Lab,DC=corp,DC=lab, and the creation of test users and groups.

A dedicated chapter explains how to create the GPO “Lab-Audit-Policy” and enable advanced auditing categories including “Audit Process Creation” with command-line logging. The author also describes a non-obvious issue where the gPCMachineExtensionNames attribute was missing the GUID for advanced audit policy, preventing settings from applying, and provides the exact PowerShell commands to correct it.

Windows 7 is joined to the domain using Add-Computer, after which Winlogbeat 7.17 is installed on both the domain controller and the client. Because Winlogbeat 7.17 cannot connect directly to Elasticsearch 9.x, Logstash is placed in the middle to receive beats input on port 5044 and forward events to the Elasticsearch HTTPS endpoint.

Port forwarding rules are configured in VirtualBox so that Kibana is reachable at http://localhost:5601 and SSH access to the ELK server is available on port 2222. Memory tuning recommendations are given for Elasticsearch and Logstash JVM heaps when RAM is limited to 4–6 GB.

The article concludes with a troubleshooting section covering DHCP errors, time synchronization requirements for Kerberos, and the necessity of KB3004375 on Windows 7 to capture command-line data in event 4688.

Related articles

Habr•Other

How a Personal Site Counts Bots Without Storing Any IPs: Pure PHP, No Database, Strict CSP and 160 Tests

A personal website built entirely in pure PHP without frameworks or databases demonstrates advanced defensive security practices while tracking bot activity from an SSH honeypot. The site stores all content in a single JSON file with atomic writes and automatic backups, eliminating database-related attack surfaces and simplifying deployment to folder copying. Strict Content-Security-Policy rules prohibit inline styles and scripts without nonces, forcing the use of SVG attributes, CSSOM updates, and JSON data blocks instead of direct attribute injection. Over 160 automated tests written in PHP attack the site with XSS payloads, CSRF attempts, path traversals, and malformed Markdown to verify that no malicious output reaches the browser. Bot identification relies on behavioral signatures derived from the first twelve cleaned commands of each session, combined with HASSH fingerprints and activity patterns, allowing the site to report unique bot families and address counts without ever publishing IPs. Additional browser-based tests using Chromium validate accessibility, performance budgets, and CSP compliance across desktop and mobile viewports. The entire system runs with zero external dependencies and integrates tests directly into the deployment pipeline.

AntiMalware•Other

Russian Finance Ministry Seeks Central Bank Reports on Systematic P2P Transfers to Tax Authorities

The Russian Ministry of Finance has proposed amendments requiring the Central Bank to share data with the Federal Tax Service on individuals whose bank accounts show signs of regular income received from other private citizens. The changes target article 85 of the Tax Code and form part of the budget package bill numbered 617-9. Under the new rules, the Central Bank would identify such citizens through transaction analysis and transmit the information according to a future agreement with the tax service. The Federal Tax Service would also gain expanded powers to request bank statements from non-entrepreneurs without needing prior debt collection or audit triggers. If approved, the provisions would take effect on 1 January 2027 and apply to operations conducted after 1 January 2026. Separate bills under discussion would impose monthly transfer limits of 30,000 rubles on suspected clients starting in 2028 and require the tax service to notify the Central Bank about account openings and income categories.

安全客•Other

Baidu Launches Ciyuan Exchange to Establish Trust Standards for AI Model Trading

Baidu Intelligent Cloud has introduced the Ciyuan Exchange, a dedicated trading platform for large AI models that aims to solve quality verification and credit issues in an increasingly crowded market. The platform, unveiled at the Baidu World 2026 Conference, already hosts over 100 supply resources with daily calls exceeding 50 million and daily token usage surpassing 700 billion. Founder Li Yanhong positioned the exchange as an infrastructure layer that moves beyond simple model aggregation toward verifiable identity, ongoing performance monitoring, and supplier credit records. The initiative addresses real procurement risks where identical models from different providers show up to twofold differences in throughput and reliability, according to a China Academy of Information and Communications Technology report. By combining model fingerprinting, capability testing, periodic audits, and continuous credit scoring, the platform seeks to create transparent market mechanisms similar to commodity exchanges. This development signals a broader industry shift from raw model capability competition toward standardized service quality, pricing transparency, and reliable delivery infrastructure.

Habr•Other

Windows and MacBook Pro Setup Combines Local Network Access with Dual VPNs and Kill Switch Protection

A user detailed how they integrated an older MacBook Pro into an existing Windows workstation environment while preserving separate user accounts, file sharing, and independent VPN connections. The setup required careful routing configuration to keep the Kill Switch active on both Amnezia VLESS and AmneziaWG without breaking local SMB connectivity. After initial failures caused by the Windows Kill Switch blocking the 192.168.1.0/24 subnet, split tunneling was implemented to route local traffic directly. Separate macOS accounts were created for daily use and a dedicated “Serverok” account for remote scripting and compute tasks. SSH and SFTP ultimately replaced problematic SMB shares for the secondary account, enabling reliable file transfers at over 50 MB/s. The configuration allows simultaneous or sequential use of both machines while maintaining strong VPN protection on each.