You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Marc Perkel <su...@junkemailfilter.com> on 2013/02/05 16:17:46 UTC

White Text Rule

Is there some sort of rule to catch white text on white background to 
hide text? Seems like there should be.

<FONT COLOR="#FFFFFF">



-- 
Marc Perkel - Sales/Support
support@junkemailfilter.com
http://www.junkemailfilter.com
Junk Email Filter dot com
415-992-3400


Re: White Text Rule

Posted by "David F. Skoll" <df...@roaringpenguin.com>.
On Tue, 05 Feb 2013 07:17:46 -0800
Marc Perkel <su...@junkemailfilter.com> wrote:

> Is there some sort of rule to catch white text on white background to 
> hide text? Seems like there should be.

> <FONT COLOR="#FFFFFF">

Going down that path leads to madness.  Then you have to worry about:

<font color="#FFFFFE"> and variants
<span class="white"> ... </span>   where "white" is defined in CSS
<font style="color: #fff">

etc.  To do it properly, you have to re-implement an entire HTML
rendering engine.  Maybe now <font color="#ffffff"> is low-hanging fruit,
but that probably won't last.

Regards,

David.

Re: White Text Rule

Posted by "David F. Skoll" <df...@roaringpenguin.com>.
On Tue, 5 Feb 2013 08:08:47 -0800 (PST)
John Hardin <jh...@impsec.org> wrote:

> It is implemented in the HTML parsing plugin so that's not a great 
> concern.

Does that plugin understand CSS?  Things like:

     body.someclass p.something span { display: none; }

I'd surely be impressed if that's the case. :)

HTML is far too easy to abuse, IMO, for a SpamAssassin plugin to try
to keep up.  In practice, we find that white-on-white text is not a
big problem because it usually scores very high on Bayes.

Regards,

David.

Re: White Text Rule

Posted by "David F. Skoll" <df...@roaringpenguin.com>.
On Tue, 05 Feb 2013 12:42:45 -0800
Marc Perkel <su...@junkemailfilter.com> wrote:

> Yes - here's a sample. Hope it gets through.

Scored very high on Bayes for me.  Here are the probabilities of words
and word-pairs reported by our Bayes engine:

Word: Although+escaped (0.990)
Word: Later+career (0.990)
Word: March+1603 (0.990)
Word: Sir+Philip (0.990)
Word: Waldegrave (0.990)
Word: business+Without (0.990)
Word: hym (0.990)
Word: immense+popularity (0.990)
Word: pochanaw (0.990)
Word: uDd (0.990)
Word: uMb (0.990)
Word: uMp (0.990)
Word: uMp+FFFFFF (0.990)
Word: using+pseudonym (0.990)
Word: works+English (0.990)

Notice that a bunch of those words and word-pairs appeared
in the white text:

Although+escaped, Later+career, March+1603, Waldegrave, etc.

So the spammers are hurting themselves in the end.

Regards,

David.

Re: White Text Rule

Posted by Marc Perkel <su...@junkemailfilter.com>.
Yes - here's a sample. Hope it gets through.

<html>
<style>
         .bWFyY0BwZXJrZWwuY29t {font-family:arial;font-size:12px;}
</style>
<center>
<a 
href="http://pochanaw.abhorrentquestion.com/queenie/uDd/7687/s=t1&d=bWFyY0BwZXJrZWwuY29t">Give 
flowers for  Day</a><br /><br />
<a 
href="http://pochanaw.abhorrentquestion.com/queenie/uDd/7687/s=t1&d=bWFyY0BwZXJrZWwuY29t"><img 
border="0" width="600" height="464" 
src="http://pochanaw.abhorrentquestion.com/queenie/uMa/7687/&d=bWFyY0BwZXJrZWwuY29t"></a><br 
/><br />
<a 
href="http://pochanaw.abhorrentquestion.com/queenie/uDc/7687/s=t1&d=bWFyY0BwZXJrZWwuY29t"><img 
border="0" width="266" height="40" 
src="http://pochanaw.abhorrentquestion.com/queenie/uMb/7687/&d=bWFyY0BwZXJrZWwuY29t"></a><br 
/><br />
<br /><br /><br /><a 
href="http://pochanaw.abhorrentquestion.com/10011/queenie"><img 
border="0" 
src="http://pochanaw.abhorrentquestion.com/queenie/uMp"></a><br />
<FONT COLOR="#FFFFFF">
On 24 June 1568 Waldegrave began an eight-year apprenticeship with the 
London stationer, William Griffith:
Robert Walgrave the sonne of Rychard walgrave late of blacklay in the 
Countye of Worcestre yeoman Deceassed hath put hym self apprentes to 
Wylliam greffeth Cetizen and stacioner of London from the feaste of the 
nativite of saynte John bapteste anno 1568 viij yeres.
Having completed his apprenticeship, Waldegrave should have gained the 
freedom of the Stationers' Company by 1576; however, as the Company 
records for that year are lost, there is no record of his having done 
so. His name first appears in the company's records as a publisher, on 
17 June 1578, when he became licensed to publish The Castle for the 
Soule, the first of many religious texts he printed or published during 
his career.
Waldegrave's principal place of business was .Without Temple Bar in the 
Strand., near Somerset House, although in 1583 he was located for a 
short time in Foster Lane. In that year he was recorded as having two 
presses. In the late 1580s his imprints indicate that he occasionally 
published from shops at the sign of the Crane in Paul's Churchyard and 
the sign of the White Horse in Cannon Lane.
He soon became known for printing the works of English clergymen and 
others who dissented from the established religion, including Dudley 
Fenner, Laurence Chaderton and John Field. He also published editions of 
works by continental and Scottish religious reformers, among them Martin 
Luther, John Calvin and John Knox. During the 1580s he was twice 
imprisoned in the White Lion prison in Southwark, spending 20 weeks 
there in 1586.7. In February the following year, a Star Chamber decree 
restricted his publishing activities. That April, he anonymously printed 
and published John Udall's The State of the Churche of England Laid 
Open, or Diotrephes, but on 16 April officers of the Stationers' Company 
confiscated his press and almost all his type, together with copies of 
Udall's book. Although he escaped from his house carrying a box of type 
hidden beneath his cloak, the copies of Udall's book were burned, and 
his seized press and type destroyed.
Printing of the Marprelate tracts on the secret press



The Whitefriars, Coventry, home of John Hales, where Waldegrave printed 
the Schoolpoints and Hay Any Work For Cooper on the secret press
Waldegrave hid the salvaged type at the house of Elizabeth Crane in the 
parish of St Mary Aldermanbury. Crane, the widow of Queen Elizabeth's 
cofferer and Master of the Household, Anthony Crane (d.1583), had 
reformist sympathies, and in the late spring of 1588 she allowed 
Waldegrave and John Penry to set up a secret press at her country home 
at East Molesey, Surrey, across the Thames from Hampton Court Palace. 
The first tract to be printed there was another of John Udall's works, 
the Demonstration of Discipline. In late 1588 and early 1589, Waldegrave 
embarked on an even more controversial enterprise, printing the first 
four tracts written against the ecclesiastical authorities by an unknown 
satirist using the pseudonym Martin Marprelate. The first of the 
Marprelate tracts, Martin's Epistle was printed on the secret press in 
October 1588 at Crane's house in East Molesey. The tract enjoyed immense 
popularity, and the ecclesiastical authorities instigated a hue and cry 
after Martin. In November the press was moved from East Molesey to Sir 
Richard Knightley's house at Fawsley in Northamptonshire, where Martin's 
second tract, The Epitome, was printed. Shortly thereafter the secret 
press was moved to the Whitefriars, Coventry, the home of Knightley's 
great-nephew, John Hales (d. 1 January 1607/8), where Certaine Minerall 
and Metaphysicall Schoolpoints and Hay Any Worke for Cooper were 
printed, the former in early January and the latter in late March 1589. 
Waldegrave then refused to print any further tracts, citing the Puritan 
ministers' disapproval of Martin Marprelate's course of action. Waldegrave
Later career

Waldegrave's movements in the months immediately after he left the 
secret press are uncertain; John Penry claimed that he was printing in 
La Rochelle in May 1589. However, by early 1590 he was in Edinburgh, 
where by March that year he was granted a licence to print. On 9 October 
he was appointed King's Printer by James VI.
 From that point until his death in 1603.4, Waldegrave printed over 100 
works, "making him the most prolific Scottish printer of the sixteenth 
century". His output consisted principally of religious works, but also 
included William Welwood's The Sea-Law of Scotland, a pirated edition of 
Sir Philip Sidney's Arcadia, and three works by King James: the Poetical 
Exercises (1591), the Daemonologie, The Trew Law, and Basilikon Doron.
In February 1597 he suffered a temporary setback when he was convicted 
of "treasonably printing" an Act of the Scottish Parliament. However, 
the conviction was later set aside.
When King James acceded to the English crown, following the death of 
Queen Elizabeth in March 1603, Waldegrave returned to England, leaving 
his Edinburgh printing business in his wife's care. He obtained a 
licence to print from the Stationers' Company in June 1603, but was dead 
by February 1604. The location of Waldegrave's grave is unknown. If he 
left a will, it has not survived.
</font><br>
</center>
</html>


Re: White Text Rule

Posted by John Hardin <jh...@impsec.org>.
On Tue, 5 Feb 2013, Marc Perkel wrote:

>
> On 2/5/2013 8:08 AM, John Hardin wrote:
>>  On Tue, 5 Feb 2013, Marc Perkel wrote:
>> 
>> >  Is there some sort of rule to catch white text on white background to 
>> >  hide text? Seems like there should be.
>> > 
>> >  <FONT COLOR="#FFFFFF">
>>
>>  Yes. HTML_FONT_LOW_CONTRAST.
>>
>>  On Tue, 5 Feb 2013, David F. Skoll wrote:
>> 
>> >  etc.  To do it properly, you have to re-implement an entire HTML 
>> >  rendering engine.  Maybe now <font color="#ffffff"> is low-hanging 
>> >  fruit, but that probably won't last.
>>
>>  It is implemented in the HTML parsing plugin so that's not a great
>>  concern.
>>
>>  It doesn't perform well by itself:
>>
>>  http://ruleqa.spamassassin.org/20130204-r1442048-n/HTML_FONT_LOW_CONTRAST/detail 
>> 
>>
>>  You're of course welcome to increase the score per your local needs.
>>
>>  I may take a shot at FP reduction...
>> 
>> 
>
> It doesn't seem to be hitting the low contrast rule where there is just one 
> statement making the text white.

Can you provide a sample?

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Trusting in anti-gun laws to keep you from being shot is like
   refusing to wear your seatbelt because you trust traffic laws to
   keep you from being in a car accident.              -- Erin Palette
-----------------------------------------------------------------------
  7 days until Abraham Lincoln's and Charles Darwin's 204th Birthdays

Re: White Text Rule

Posted by Marc Perkel <su...@junkemailfilter.com>.
On 2/5/2013 8:08 AM, John Hardin wrote:
> On Tue, 5 Feb 2013, Marc Perkel wrote:
>
>> Is there some sort of rule to catch white text on white background to 
>> hide text? Seems like there should be.
>>
>> <FONT COLOR="#FFFFFF">
>
> Yes. HTML_FONT_LOW_CONTRAST.
>
> On Tue, 5 Feb 2013, David F. Skoll wrote:
>
>> etc.  To do it properly, you have to re-implement an entire HTML 
>> rendering engine.  Maybe now <font color="#ffffff"> is low-hanging 
>> fruit, but that probably won't last.
>
> It is implemented in the HTML parsing plugin so that's not a great 
> concern.
>
> It doesn't perform well by itself:
>
> http://ruleqa.spamassassin.org/20130204-r1442048-n/HTML_FONT_LOW_CONTRAST/detail 
>
>
> You're of course welcome to increase the score per your local needs.
>
> I may take a shot at FP reduction...
>
>

It doesn't seem to be hitting the low contrast rule where there is just 
one statement making the text white.

-- 
Marc Perkel - Sales/Support
support@junkemailfilter.com
http://www.junkemailfilter.com
Junk Email Filter dot com
415-992-3400


Re: White Text Rule

Posted by John Hardin <jh...@impsec.org>.
On Tue, 5 Feb 2013, Marc Perkel wrote:

> Is there some sort of rule to catch white text on white background to hide 
> text? Seems like there should be.
>
> <FONT COLOR="#FFFFFF">

Yes. HTML_FONT_LOW_CONTRAST.

On Tue, 5 Feb 2013, David F. Skoll wrote:

> etc.  To do it properly, you have to re-implement an entire HTML 
> rendering engine.  Maybe now <font color="#ffffff"> is low-hanging 
> fruit, but that probably won't last.

It is implemented in the HTML parsing plugin so that's not a great 
concern.

It doesn't perform well by itself:

http://ruleqa.spamassassin.org/20130204-r1442048-n/HTML_FONT_LOW_CONTRAST/detail

You're of course welcome to increase the score per your local needs.

I may take a shot at FP reduction...


-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Trusting in anti-gun laws to keep you from being shot is like
   refusing to wear your seatbelt because you trust traffic laws to
   keep you from being in a car accident.              -- Erin Palette
-----------------------------------------------------------------------
  7 days until Abraham Lincoln's and Charles Darwin's 204th Birthdays

Re: White Text Rule

Posted by Simon Loewenthal <si...@klunky.co.uk>.
 

Hi Mark, 

maybe this works. This I stole it from someone who posted
here. 

# HTML - White text on a white background. What is the
point?
rawbody HTML_TEXT_WHITE_SHORT /style=.color#FFF;/
describe
HTML_TEXT_WHITE_SHORT White html txt on white bg
score
HTML_TEXT_WHITE_SHORT 0.1 

Simon 

---
"I decided that I was a lemon
for a couple of weeks. I kept myself amused all that time jumping in and
out of a gin and tonic."
simon@klunky .co.uk / .org

On 2013-02-05
16:17, Marc Perkel wrote: 

> Is there some sort of rule to catch white
text on white background to 
> hide text? Seems like there should be.
>

> <FONT COLOR="#FFFFFF">