I find that a lot of people working for a recruiting company actually make it clear in their email with the address or signature.
To some extent a contractor who working for the company I know ... I'd still consider that a direct company reaching out to me type situation that I'd be more inclined to respond.
I don't find that it is hidden all that often, but that's just my experience.
I suppose it is possible that a temporary contractor has an email address from that company, but I think you can get reasonably high signal by looking at their LinkedIn history. Switching positions every few months is a red flag. Even if they're an independent contractor, longer-term arrangements with each client suggest better relationships and better commitment to real outcomes.
I see plenty of recruiters who just work for recruiting firms and don't hide that fact. Anyone who won't immediately tell me who they're recruiting for gets ignored. I'm sure I end up talking to the occasional contractor but you can easily filter out a lot of obvious low-hanging (and rotten) fruit).
I know there are two extremes: (a) recruiter is a regular employee of hiring company, vs. (z) recruiter works for an unaffiliated placement company.
But i.e. if a recruiter is a temporary contractor with the hiring company, they'd still have an email address from that company, right?