OK, further digging
the URL is /cwslis_news/test/
and for some reason the rewrite rule that matches is:
[[^/]+/([^/]+)/?$] => index.php?attachment=$matches[1]
which as I understand it is [somthing]/[somthing]/[somthing or nothing]
which seems a very open rule, I’m not surprised it matches but why would such a big catch all rule return ‘attachment’ as the post type?