|
| 1 | +# Device Fingerprinter v1 Submission Guide (Active after September [x]th 2025 10:00 UTC) |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +## Overview |
| 6 | + |
| 7 | +**Device Fingerprinter v1** tests miners' ability to develop a browser SDK that can accurately detect the driver type used by bots interacting with a webpage. |
| 8 | + |
| 9 | +Miners must create a JavaScript fingerprinter that can distinguish between different devices through device fingerprinting techniques, analyzing browser properties, behavior patterns, and technical signatures. |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +## Example Code and Submission Instructions |
| 14 | + |
| 15 | +Example codes for the Device Fingerprinter v1 can be found in the [`redteam_core/miner/commits/dev_fingerprinter_v1/`](https://github.com/RedTeamSubnet/RedTeam/blob/main/redteam_core/miner/commits/dev_fingerprinter_v1/) directory. |
| 16 | + |
| 17 | +### Technical Requirements |
| 18 | + |
| 19 | +- JavaScript (ES6+) |
| 20 | +- Ubuntu 24.04 |
| 21 | +- Docker container support |
| 22 | + |
| 23 | +### Core Requirements |
| 24 | + |
| 25 | +1. Use our template from [`redteam_core/miner/commits/dev_fingerprinter_v1/src/fingerprinter/fingerprinter.js`](https://github.com/RedTeamSubnet/RedTeam/blob/main/redteam_core/miner/commits/dev_fingerprinter_v1/src/fingerprinter/fingerprinter.js) |
| 26 | +2. Keep the `runFingerprinting()` function signature and export unchanged |
| 27 | +3. Your fingerprinter must: |
| 28 | + - Collect device and browser fingerprint data |
| 29 | + - Generate a unique fingerprint hash |
| 30 | + - Send results to the designated endpoint |
| 31 | + - Complete without errors |
| 32 | + |
| 33 | +### Key Guidelines |
| 34 | + |
| 35 | +- **Detection Accuracy**: Your fingerprinter must accurately identify different devices and provide consistent hash values for the same device across multiple runs. |
| 36 | +- **Fingerprint Collection**: |
| 37 | + - Collect comprehensive browser and device properties |
| 38 | + - Analyze WebDriver signatures and automation artifacts |
| 39 | +- **Data Processing**: |
| 40 | + - Generate unique, consistent fingerprint hashes |
| 41 | + - Process collected data efficiently |
| 42 | +- **API Integration**: |
| 43 | + - Follow the provided API endpoint structure |
| 44 | + - Send properly formatted JSON payloads |
| 45 | + - Handle errors gracefully |
| 46 | +- **Technical Setup**: |
| 47 | + - Use modern JavaScript (ES6+) features |
| 48 | + - List dependencies in [`requirements.txt`](https://github.com/RedTeamSubnet/RedTeam/blob/main/redteam_core/miner/commits/dev_fingerprinter_v1/requirements.txt) |
| 49 | + - Use **amd64** architecture |
| 50 | +- **Limitations** |
| 51 | + - Your script must not exceed 2,000 lines. If it does, it will be considered invalid, and you will receive a score of zero. |
| 52 | + - Your dependencies must be older than January 1, 2025. Any package released on or after this date will not be accepted, and your script will not be processed. |
| 53 | + |
| 54 | +### Plagiarism Check |
| 55 | + |
| 56 | +We maintain strict originality standards: |
| 57 | + |
| 58 | +- All submissions are compared against other miners' scripts |
| 59 | +- 100% similarity = zero score |
| 60 | +- Similarity above 60% will result in proportional score penalties based on the **detected similarity percentage**. |
| 61 | +- Note: Comparisons are only made against other miners submissions, not your own previous challenge entries. |
| 62 | + |
| 63 | +## Submission Guide |
| 64 | + |
| 65 | +Follow 1~6 steps to submit your script. |
| 66 | + |
| 67 | +1. **Navigate to the Device Fingerprinter v1 Commit Directory** |
| 68 | + |
| 69 | + ```bash |
| 70 | + cd redteam_core/miner/commits/dev_fingerprinter_v1 |
| 71 | + ``` |
| 72 | + |
| 73 | +2. **Build the Docker Image** |
| 74 | + |
| 75 | + To build the Docker image for the Device Fingerprinter v1 submission, run: |
| 76 | + |
| 77 | + ```bash |
| 78 | + docker build -t my_hub/dev_fingerprinter_v1-miner:0.0.1 . |
| 79 | +
|
| 80 | + # For MacOS (Apple Silicon) to build AMD64: |
| 81 | + DOCKER_BUILDKIT=1 docker build --platform linux/amd64 -t myhub/dev_fingerprinter_v1-miner:0.0.1 . |
| 82 | + ``` |
| 83 | + |
| 84 | +3. **Log in to Docker** |
| 85 | + |
| 86 | + Log in to your Docker Hub account using the following command: |
| 87 | + |
| 88 | + ```bash |
| 89 | + docker login |
| 90 | + ``` |
| 91 | + |
| 92 | + Enter your Docker Hub credentials when prompted. |
| 93 | + |
| 94 | +4. **Push the Docker Image** |
| 95 | + |
| 96 | + Push the tagged image to your Docker Hub repository: |
| 97 | + |
| 98 | + ```bash |
| 99 | + docker push myhub/dev_fingerprinter_v1:0.0.1 |
| 100 | + ``` |
| 101 | + |
| 102 | +5. **Retrieve the SHA256 Digest** |
| 103 | + |
| 104 | + After pushing the image, retrieve the digest by running: |
| 105 | + |
| 106 | + ```bash |
| 107 | + docker inspect --format='{{index .RepoDigests 0}}' myhub/dev_fingerprinter_v1:0.0.1 |
| 108 | + ``` |
| 109 | + |
| 110 | +6. **Update active_commit.yaml** |
| 111 | + |
| 112 | + Finally, go to the `neurons/miner/active_commit.yaml` file and update it with the new image tag: |
| 113 | + |
| 114 | + ```yaml |
| 115 | + - dev_fingerprinter_v1---myhub/dev_fingerprinter_v1@<sha256:digest> |
| 116 | + ``` |
| 117 | + |
| 118 | +--- |
| 119 | + |
| 120 | +## 📑 References |
| 121 | + |
| 122 | +- Docker - <https://docs.docker.com> |
0 commit comments