Jump on highway 77 in Texas coming from Houston to South Padre... you will be stopped. Pretty sure they take pictures of license plates, dogs sniff cars, and they ask for your identification.
It's basically a check point. The line to get through it can take a while and some vehicles are heavily searched. I've never had that opportunity fortunately.
Have you ever seen the videos of the people refusing to comply with these checkpoints?
For CBP to search you under the aegis of border security, you must have recently crossed the actual US border. The law doesn't require CBP searches to occur at the actual border; for instance, there may be so many possible crossing points at e.g. the Canadian border that, logistically, search only makes sense at some chokepoint 20-30 miles from the border. But they can't search people at random. The CRS says so, and, 30 years before that, so did SCOTUS.
It's basically a check point. The line to get through it can take a while and some vehicles are heavily searched. I've never had that opportunity fortunately.