ArgumentError: invalid byte sequence in UTF-8
Service
cupixworks-migration-service-api
Occurrences
138
Status
Ignored
Confidence
85%
Actionability
40%
Cluster ID
fbb4cb37-f30e-4798-b626-63b214b16e80
First Seen
2024-07-19 01:58 UTC
Last Seen
2026-08-04 17:26 UTC
Actions
현재 상태 ignored 에서는 실행할 액션이 없습니다.
ArgumentError: invalid byte sequence in UTF-8
What Happened#
migration-service (Rails 7.1 API) 가 인터넷 스캐너의 악성 요청을 받을 때마다 ArgumentError: invalid byte sequence in UTF-8 로 HTTP 500 을 반환한다. 요청은 전부 동일한 PHP RCE 스캔 프로브(POST /hello.world?%ADd+allow_url_include%3d1+..., User-Agent libredtail-http = RedTail 봇넷)이며, URL 쿼리스트링에 포함된 잘못된 바이트(%AD = 0xAD)가 Rails 로그 파라미터 필터링 단계에서 UTF-8 정규식 매칭을 깨뜨린다. 애플리케이션 코드가 실행되기 전 미들웨어 단계에서 터지므로 컨트롤러의 rescue_from 이 잡지 못하고, 14일간 dev·production 양쪽에서 113건 발생했다.
Quick Facts#
| Field | Value |
|---|---|
| exception.class | ArgumentError |
| exception.message | invalid byte sequence in UTF-8 |
| top_frame | activesupport-7.1.4/lib/active_support/parameter_filter.rb:140:in 'match?' |
| runtime | Ruby 2.7.0 / Rails 7.1.4 (activesupport, actionpack) |
| deploy | dev.azure.com/cupix/.../cupixworks (migration-service) |
| env | dev + production (us-west-2), 요청 원본은 외부 IP 35.165.238.184 |
Affected Teams#
| Team / Domain | Error Count | Impact |
|---|---|---|
| cupixworks-migration-service-api | 113 (14d) / 144 (누적) | 사용자 영향 없음 — 요청은 전부 외부 스캐너 프로브이며 실제 API 엔드포인트(/api/v1/migrations)와 무관 |
Timeline#
- 2024-07-19 10:58 KST — 최초 발생 (first_seen)
- 2026-07-30 ~ 2026-08-04 — 14일 창에서 113건, 하루 수 건씩 dev·production 에 산발 (전부 동일 RedTail 프로브)
- 2026-08-04 16:17 KST — 최근 발생 (last_seen), Representative 와 동일 메시지
- 2026-08-04 — RCA 수행, external scanner noise 로 판정
Scoring#
Confidence 85% · Actionability 40%
Confidence#
| Dimension | Score | Detail |
|---|---|---|
| Evidence completeness | 5/5 | 17 code refs, 5 log queries |
| Code path explicitness | 3/3 | 17 file:line refs |
| Log evidence | 3/3 | section, query, pattern |
| RCA structure | 3/3 | 3/3 sections |
| Revision history | 0/3 | 0 revision(s) |
| Agent execution | 3/3 | success |
Actionability#
| Dimension | Score | Detail |
|---|---|---|
| Fix complexity | 5/5 | trivial |
| Affected files | 1/5 | 18 file(s) |
| Single repo | 1/3 | 4 service(s) |
| Immediate actions | 0/3 | absent |
| Testability | 0/3 | no test info |
| External dependency | 3/3 | no external deps |
| Data migration | 0/3 | migration needed |