文件快递柜-匿名口令分享文本,文件,像拿快递一样取文件(FileCodeBox - File Express Cabinet - Anonymous Passcode Sharing Text, Files, Like Taking Express Delivery for Files)
This report presents the forensic synthetic code analysis of vastsa/FileCodeBox, a Python project with 8,488 GitHub stars. SynthScan v2.0 examined 18,247 lines of code across 88 source files, recording 188 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 10.9 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 188 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | main.py | 203 | def build_expire_style_inputs(selected_styles: list[str]) -> str: | CODE |
| LOW | main.py | 771 | async def refresh_settings_middleware(request, call_next): | CODE |
| LOW⚡ | core/tasks.py | 99 | async def clean_expired_presign_sessions(): | CODE |
| LOW | core/storage.py | 84 | async def generate_presigned_upload_url(self, save_path: str, expires_in: int = 900) -> Optional[str]: | CODE |
| LOW | core/storage.py | 542 | async def generate_presigned_upload_url(self, save_path: str, expires_in: int = 900) -> Optional[str]: | CODE |
| LOW | core/storage.py | 675 | def _convert_link_to_download_link(self, link): | CODE |
| LOW | tests/test_admin_security.py | 32 | def test_initial_security_config_requires_setup_and_generates_jwt_secret(self): | CODE |
| LOW | tests/test_admin_security.py | 41 | def test_legacy_default_password_requires_setup(self): | CODE |
| LOW | tests/test_admin_security.py | 52 | def test_custom_plaintext_password_is_hashed_and_initialized(self): | CODE |
| LOW | tests/test_admin_security.py | 65 | def test_parse_setup_options_converts_common_fields(self): | CODE |
| LOW⚡ | tests/test_admin_security.py | 100 | def test_parse_setup_options_allows_turning_guest_upload_off(self): | CODE |
| LOW⚡ | tests/test_admin_security.py | 110 | def test_parse_setup_options_requires_expire_style(self): | CODE |
| LOW⚡ | tests/test_admin_security.py | 116 | def test_admin_jwt_signature_uses_independent_secret(self): | CODE |
| LOW | tests/test_admin_security.py | 130 | def test_configured_session_lifetime_is_returned_by_login(self): | CODE |
| LOW | tests/test_admin_security.py | 189 | def test_storage_limit_rejects_negative_values(self): | CODE |
| LOW | tests/test_admin_security.py | 195 | def test_admin_session_lifetime_rejects_out_of_range_values(self): | CODE |
| LOW | tests/test_admin_security.py | 208 | def test_admin_password_update_rotates_jwt_secret(self): | CODE |
| LOW | tests/test_admin_security.py | 231 | def test_initialize_system_sets_admin_password_and_jwt_secret(self): | CODE |
| LOW⚡ | tests/test_version.py | 11 | def test_version_file_is_the_runtime_version_source(self): | CODE |
| LOW⚡ | tests/test_version.py | 19 | def test_release_manifest_matches_version_file(self): | CODE |
| LOW⚡ | tests/test_version.py | 25 | def test_build_can_override_version_with_environment(self): | CODE |
| LOW⚡ | tests/test_version.py | 31 | def test_rejects_non_canonical_versions(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 35 | def test_new_installations_default_to_secret_codes(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 43 | def test_atomic_usage_download_and_metadata_limits(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 82 | async def _assert_count_consumption_is_atomic(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 103 | async def _assert_time_expiration_and_usage_are_atomic(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 132 | async def _assert_download_url_is_single_use(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 160 | async def _assert_text_share_downloads_as_txt(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 184 | async def _assert_limited_files_do_not_expose_direct_urls(self): | CODE |
| LOW | tests/test_issue_482_share_usage.py | 199 | async def _assert_metadata_counts_all_attempts(self): | CODE |
| LOW | tests/test_issue_465_file_type.py | 18 | def test_allows_extensions_and_mime_patterns(self): | CODE |
| LOW | tests/test_issue_465_file_type.py | 25 | def test_rejects_disallowed_file_type(self): | CODE |
| LOW | tests/test_issue_464_admin_file_list.py | 40 | def test_build_admin_file_item_serializes_required_fields(self): | CODE |
| LOW | tests/test_issue_464_admin_file_list.py | 56 | def test_build_admin_file_item_marks_expiring_soon(self): | CODE |
| LOW | tests/test_issue_461_s3_addressing.py | 16 | def test_client_config_uses_path_style_when_configured(self): | CODE |
| LOW | tests/test_issue_461_s3_addressing.py | 26 | def test_client_config_ignores_invalid_addressing_style(self): | CODE |
| LOW | tests/test_issue_473_retrieve_code.py | 21 | def test_normalize_share_code_strips_surrounding_whitespace(self): | CODE |
| LOW | tests/test_issue_473_retrieve_code.py | 24 | def test_get_code_file_by_code_queries_normalized_code(self): | CODE |
| LOW | tests/test_issue_476_theme_assets.py | 24 | def test_resolves_assets_from_current_theme(self): | CODE |
| LOW | tests/test_issue_476_theme_assets.py | 38 | def test_rejects_theme_asset_path_traversal(self): | CODE |
| LOW | tests/test_issue_476_theme_assets.py | 46 | def test_index_keeps_absolute_asset_urls(self): | CODE |
| LOW⚡ | tests/test_security_gaps.py | 25 | def test_detects_common_signatures(self): | CODE |
| LOW⚡ | tests/test_security_gaps.py | 33 | def test_rejects_extension_spoofing(self): | CODE |
| LOW⚡ | tests/test_security_gaps.py | 40 | def test_rejects_content_type_spoofing(self): | CODE |
| LOW⚡ | tests/test_security_gaps.py | 46 | def test_accepts_matching_png(self): | CODE |
| LOW⚡ | tests/test_security_gaps.py | 50 | def test_whitelist_still_enforced(self): | CODE |
| LOW | tests/test_security_gaps.py | 70 | def test_failed_logins_are_rate_limited(self): | CODE |
| LOW | tests/test_security_gaps.py | 83 | def test_successful_login_does_not_consume_failure_quota(self): | CODE |
| LOW | tests/test_security_gaps.py | 94 | def test_dockerfile_defaults_to_root_for_volume_compatibility(self): | CODE |
| LOW | tests/test_pr494_security_patches.py | 27 | def test_validate_expire_style_rejects_unknown_mode(self): | CODE |
| LOW | tests/test_pr494_security_patches.py | 38 | def test_sql_placeholders_follow_dialect(self): | CODE |
| LOW | tests/test_pr494_security_patches.py | 79 | def test_download_token_accepts_previous_window(self): | CODE |
| LOW | tests/test_pr494_security_patches.py | 82 | async def _assert_download_token_window(self): | CODE |
| LOW | tests/test_issue_478_s3_file_exists.py | 27 | def test_file_exists_falls_back_to_list_objects(self): | CODE |
| LOW | tests/test_issue_478_s3_file_exists.py | 38 | def test_file_exists_returns_false_when_missing(self): | CODE |
| LOW | tests/test_issue_486_storage_quota.py | 14 | def test_quota_reservations_are_atomic_and_reusable(self): | CODE |
| LOW | tests/test_issue_480_admin_address.py | 14 | def test_admin_address_is_exposed_as_strict_binary_flag(self): | CODE |
| LOW | tests/test_security_hardening.py | 26 | def test_verify_password_accepts_valid_hash(self): | CODE |
| LOW | tests/test_security_hardening.py | 31 | def test_verify_password_supports_legacy_plaintext(self): | CODE |
| LOW⚡ | tests/test_security_hardening.py | 51 | def test_rejects_dotdot_filename(self): | CODE |
| 33 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | core/tasks.py | 45 | except Exception as e: | CODE |
| LOW⚡ | core/tasks.py | 49 | except Exception as e: | CODE |
| LOW⚡ | core/tasks.py | 51 | except Exception as e: | CODE |
| LOW | core/tasks.py | 77 | except Exception as e: | CODE |
| LOW⚡ | core/tasks.py | 88 | except Exception as e: | CODE |
| LOW⚡ | core/tasks.py | 93 | except Exception as e: | CODE |
| LOW | core/tasks.py | 118 | except Exception as e: | CODE |
| LOW | core/tasks.py | 127 | except Exception as e: | CODE |
| LOW | core/database.py | 100 | except Exception as e: | STRING |
| LOW | core/database.py | 140 | except Exception as e: | CODE |
| LOW | core/database.py | 144 | except Exception as e: | CODE |
| MEDIUM | core/database.py | 80 | def init_db(): | CODE |
| MEDIUM | core/storage.py | 373 | def stream_generator(): | CODE |
| MEDIUM | core/storage.py | 593 | def __init__(self): | CODE |
| MEDIUM | core/storage.py | 891 | def __init__(self): | CODE |
| LOW | core/storage.py | 168 | except Exception: | CODE |
| LOW | core/storage.py | 202 | except Exception as e: | CODE |
| LOW | core/storage.py | 243 | except Exception as e: | CODE |
| LOW | core/storage.py | 261 | except Exception as e: | CODE |
| LOW | core/storage.py | 268 | except Exception as e: | CODE |
| LOW | core/storage.py | 357 | except Exception: | CODE |
| LOW | core/storage.py | 407 | except Exception: | CODE |
| LOW | core/storage.py | 477 | except Exception as e: | CODE |
| LOW | core/storage.py | 509 | except Exception as e: | CODE |
| LOW | core/storage.py | 539 | except Exception as e: | CODE |
| LOW | core/storage.py | 571 | except Exception as e: | CODE |
| LOW | core/storage.py | 585 | except Exception as e: | CODE |
| LOW | core/storage.py | 628 | except Exception as e: | CODE |
| LOW | core/storage.py | 711 | except Exception: | CODE |
| LOW | core/storage.py | 747 | except Exception: | CODE |
| LOW | core/storage.py | 831 | except Exception as e: | CODE |
| LOW | core/storage.py | 867 | except Exception as e: | CODE |
| LOW | core/storage.py | 929 | except Exception: | CODE |
| LOW | core/storage.py | 969 | except Exception as e: | CODE |
| LOW | core/storage.py | 997 | except Exception as e: | CODE |
| LOW | core/storage.py | 1025 | except Exception as e: | CODE |
| LOW | core/storage.py | 1037 | except Exception: | CODE |
| LOW | core/storage.py | 1189 | except Exception: | CODE |
| LOW | core/storage.py | 1345 | except Exception as e: | CODE |
| LOW | docs/guide/storage-onedrive.md | 73 | except Exception as e: | CODE |
| LOW | apps/admin/services.py | 125 | except Exception as exc: | CODE |
| LOW | apps/admin/services.py | 173 | except Exception as exc: | CODE |
| LOW | apps/admin/services.py | 409 | except Exception as exc: | CODE |
| LOW | apps/admin/services.py | 846 | except Exception: | CODE |
| LOW | apps/admin/services.py | 1501 | except Exception: | CODE |
| LOW | apps/admin/dependencies.py | 95 | except Exception: | CODE |
| LOW | apps/admin/dependencies.py | 104 | except Exception as e: | CODE |
| MEDIUM | apps/admin/dependencies.py | 27 | def get_admin_session_expire_seconds() -> int: | CODE |
| LOW | apps/base/quota.py | 24 | except Exception: | CODE |
| LOW | apps/base/quota.py | 102 | except Exception: | STRING |
| MEDIUM | apps/base/quota.py | 48 | def get_storage_limit() -> int: | CODE |
| LOW | apps/base/views.py | 183 | except Exception: | CODE |
| LOW | apps/base/views.py | 188 | except Exception: | CODE |
| LOW | apps/base/views.py | 382 | except Exception: | CODE |
| LOW | apps/base/views.py | 477 | except Exception: | CODE |
| LOW | apps/base/views.py | 558 | except Exception as e: | CODE |
| LOW | apps/base/views.py | 594 | except Exception as e: | CODE |
| LOW | apps/base/views.py | 665 | except Exception: | CODE |
| LOW | apps/base/views.py | 709 | except Exception as e: | CODE |
| LOW | apps/base/views.py | 713 | except Exception: | CODE |
| 7 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/tasks.py | 25 | CODE | |
| LOW | core/tasks.py | 57 | CODE | |
| LOW | core/tasks.py | 99 | CODE | |
| LOW | core/database.py | 105 | CODE | |
| LOW | core/storage.py | 340 | CODE | |
| LOW | core/storage.py | 694 | CODE | |
| LOW | core/storage.py | 760 | CODE | |
| LOW | core/storage.py | 792 | CODE | |
| LOW | core/storage.py | 917 | CODE | |
| LOW | core/storage.py | 1172 | CODE | |
| LOW | core/storage.py | 1314 | CODE | |
| LOW | tests/test_version.py | 31 | CODE | |
| LOW | apps/admin/services.py | 1138 | CODE | |
| LOW | apps/admin/services.py | 1546 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_pr494_security_patches.py | 3 | CODE | |
| LOW | tests/test_security_hardening.py | 3 | CODE | |
| LOW | tests/test_security_hardening.py | 14 | CODE | |
| LOW | tests/test_security_hardening.py | 20 | CODE | |
| LOW | apps/admin/dependencies.py | 5 | CODE | |
| LOW | apps/base/file_validation.py | 3 | CODE | |
| LOW | apps/base/schemas.py | 2 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/__init__.py | 1 | # @Time : 2023/8/11 20:06 | COMMENT |
| LOW | apps/__init__.py | 1 | # @Time : 2023/8/13 20:43 | COMMENT |
| LOW | apps/admin/__init__.py | 1 | # @Time : 2023/8/14 14:38 | COMMENT |
| LOW | apps/base/__init__.py | 1 | # @Time : 2023/8/13 20:43 | COMMENT |
| LOW | apps/base/views.py | 401 | if max_possible_size > settings.uploadSize: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/storage.py | 641 | CODE | |
| LOW | apps/admin/views.py | 344 | CODE |