Thank you for your interest in contributing to the Barzakh project. This document outlines the guidelines and requirements for contributing to this academic research project.
Barzakh is a controlled academic research project with strict ethical and legal constraints. Contributions are limited to authorized personnel who have:
- ✅ Signed institutional agreements
- ✅ Completed required ethics training
- ✅ Been granted explicit access by the Principal Investigator
If you do not meet these requirements, you cannot contribute to this project.
- Approved researchers on the project team
- Institutional collaborators with signed agreements
- Peer reviewers during academic publication process (read-only)
- Security researchers with coordinated disclosure agreements
- ❌ Contributors outside the institutional framework
- ❌ Anyone seeking to weaponize or misuse the research
- ❌ Contributors who cannot comply with ethical constraints
All contributions must adhere to the project's ethical framework:
- Defensive security improvements
- Detection capability enhancements
- Documentation improvements
- Bug fixes that improve safety
- Test coverage improvements
- Academic rigor enhancements
- Weaponization features
- Removal of safety mechanisms
- Bypass of kill-switches
- Data exfiltration capabilities
- Destructive payloads
- 0-day exploitation (outside coordinated disclosure)
- Any feature that violates the project's approved scope
Before making any contribution:
- Review the project's ethical guidelines
- Understand the security constraints
- Read the technical documentation
- Set up your development environment per
docs/SETUP.md
# 1. Create a feature branch
git checkout -b feature/your-feature-name
# 2. Make your changes
# - Follow coding standards
# - Add tests
# - Update documentation
# 3. Sign your commits (REQUIRED)
git commit -S -m "Your commit message"
# 4. Push to your branch
git push origin feature/your-feature-name
# 5. Create a pull request
# - Describe your changes
# - Reference any related issues
# - Explain how changes maintain ethical boundariesAll contributions undergo rigorous review:
-
Automated Checks
- CI/CD pipeline validation
- Security constraint verification
- Build artifact integrity
- Test suite execution
-
Peer Review
- Code quality assessment
- Ethical compliance verification
- Security impact analysis
- Documentation completeness
-
Principal Investigator Approval
- Final ethical review
- Merge authorization
- Language: C11 for UEFI code, Rust (stable) for scanner/adversary binaries, Python 3.10+ for tooling, Bash for scripts
- Style: Follow EDK II coding style for UEFI code
- Comments: Clear, concise, and explain why, not just what
- Documentation: Update relevant docs with any changes
// Use EDK II types
EFI_STATUS
EFIAPI
MyFunction (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
{
// Function implementation
return EFI_SUCCESS;
}# Follow PEP 8
# Use type hints
# Include docstrings
def my_function(param: str) -> bool:
"""
Brief description.
Args:
param: Parameter description
Returns:
Return value description
"""
return True#!/bin/bash
# Script description
# Usage: script.sh [OPTIONS]
set -euo pipefail # Strict error handling
# Use functions
my_function() {
local param="$1"
# Implementation
}<type>(<scope>): <subject>
<body>
<footer>
Types:
feat: New featurefix: Bug fixdocs: Documentation changesstyle: Code style changes (formatting)refactor: Code refactoringtest: Test additions or changeschore: Build process or auxiliary tool changessecurity: Security-related changes
Example:
feat(BootkitPkg): Add PCR validation to DXE hook
Implement TPM PCR validation in the DXE injection module to
ensure attestation data integrity. This enhances the defensive
telemetry capabilities.
Refs: #42
All commits MUST be GPG-signed:
# Configure GPG signing
git config --global user.signingkey YOUR_GPG_KEY_ID
git config --global commit.gpgsign true
# Sign commits
git commit -S -m "Your message"All contributions must include:
- Unit Tests: For individual functions/modules
- Integration Tests: For component interactions
- Safety Tests: Verify kill-switches remain functional
- Regression Tests: Ensure existing functionality preserved
# Run all tests
./scripts/run-tests.sh
# Run specific test suite
./scripts/run-tests.sh --suite safety
# Run with coverage
./scripts/run-tests.sh --coverage- Minimum 80% code coverage for new code
- 100% coverage for security-critical paths
- All kill-switch mechanisms must have tests
When contributing, update:
- Code Comments: Inline documentation
- API Documentation: For public interfaces
- User Documentation: If user-facing changes
- Technical Docs: For architectural changes
- CHANGELOG.md: Summary of changes
- Use Markdown for all documentation
- Include code examples where appropriate
- Keep language clear and concise
- Update diagrams if architecture changes
Before submitting:
- No hardcoded secrets or credentials
- Kill-switches remain functional
- UUID/TPM binding intact
- Expiry mechanism preserved
- No network capabilities added
- Audit logging maintained
- SBOM generation works
- Artifact signing functional
If you discover a vulnerability:
- DO NOT create a public issue
- DO NOT disclose publicly
- DO notify the Principal Investigator immediately
- DO follow the responsible disclosure process in
SECURITY.md
## Description
Brief description of changes
## Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Documentation update
- [ ] Refactoring
- [ ] Security enhancement
## Ethical Compliance
- [ ] Changes maintain all safety mechanisms
- [ ] No weaponization features added
- [ ] Project scope not exceeded
- [ ] Defensive-only purpose maintained
## Testing
- [ ] Unit tests added/updated
- [ ] Integration tests pass
- [ ] Safety tests pass
- [ ] Manual testing completed
## Documentation
- [ ] Code comments updated
- [ ] Documentation updated
- [ ] CHANGELOG.md updated
## Checklist
- [ ] Commits are GPG-signed
- [ ] Code follows style guidelines
- [ ] Tests pass locally
- [ ] No merge conflictsPRs are evaluated on:
- Ethical Compliance: Maintains project boundaries
- Code Quality: Follows standards and best practices
- Security: Preserves safety mechanisms
- Testing: Adequate test coverage
- Documentation: Complete and accurate
- Scope Compliance: Within approved scope
- Documentation:
docs/directory - Setup Guide:
docs/SETUP.md - Technical Details:
docs/technical_details.md - Testing Guide:
docs/testing.md
- Principal Investigator: Yasin (yasindce1998@gmail.com)
- Institution: Dead Lock Corp
- Issues: GitHub Issues (for approved contributors only)
- Discussions: GitHub Discussions (for approved contributors only)
- Security: security@deadlockcorp.edu
By contributing to this project, you agree that:
- Your contributions are your original work
- You have the right to submit the contributions
- Your contributions will be licensed under the project license
- You will comply with all ethical and legal constraints
- You understand the academic research nature of the project
Violations of these guidelines may result in:
- Contribution rejection
- Access revocation
- Institutional disciplinary action
- Legal consequences (for serious violations)
We appreciate contributions from:
- Project team members
- Institutional collaborators
- Peer reviewers
- Security researchers (coordinated disclosure)
Remember: This is academic research with real-world security implications. Every contribution must maintain the highest ethical standards and contribute to defensive security knowledge.
Last Updated: May 11, 2026
Version: 1.0.0